Your Rating (0)
Average Rating (0)
Stats
Bagged | 0 |
Unique | 0 |
Past Year | 0 |
Past Month | 0 |
Past Week | 0 |
By You | 0 |
Problem?
Report error / duplicate
Abbey Ales
Bellringer
4.2%
Shortts Farm Brewery
Blondie
4%
Chalk Hill Brewery
Chalk Hill Gold
4.3%
Oldershaw Brewery
Heavenly Blonde
3.8%
Liberation Brewery
Herm Island Gold
4.2%
Wye Valley Brewery
HPA
4%
Fyne Ales
Jarl
3.8%
Liberation Brewery
Liberation Ale
4%
Fuller's Griffin Brewery
Oliver's Island
3.8%
Otter Brewery
Otter Bright
4.3%
Hop Back Brewery
Summer Lightning
5%
Truman's Brewery
Swift
3.9%
Bagging Beer - Single Hop Nugget
You must be logged in to bag a venue
Login Now
Cancel
Bagging Beer - Single Hop Nugget
SELECT tblBeer.iBeerID, sBeer, iContainerID, IFNULL(sBeerImage,sBreweryImage) AS sImage, IFNULL(sColour,'#F0ED68') AS sColour, CASE iContainerID WHEN 1 THEN 'keg' WHEN 2 THEN 'bottle' WHEN 3 THEN 'can' ELSE 'pump' END AS sContainer, fABV, sBrewery, sBreweryColab FROM ( SELECT tblpubbeer.iBeerID, iBreweryID, sBeer, fABV, iContainerID, sColour FROM (SELECT * FROM tblPubBeer WHERE iPubID = 18960 AND tblPubBeer.iActive = 1 AND tblPubBeer.iDelete = 0) AS tblPubBeer INNER JOIN (SELECT iBeerID, iBreweryID, sBeer, fABV, iContainerID, iBeerTypeID FROM tblBeer WHERE iDelete = 0 AND iActive = 1) AS tblBeer ON tblBeer.iBeerID = tblPubBeer.iBeerID LEFT JOIN tblBeerType ON tblBeer.iBeerTypeID = tblBeerType.iBeerTypeID) AS tblBeer INNER JOIN (SELECT iBreweryID, sBrewery FROM tblBrewery WHERE iDelete = 0 AND iActive = 1) AS tblBrewery ON tblBrewery.iBreweryID = tblBeer.iBreweryID LEFT JOIN (SELECT iBeerID, GROUP_CONCAT(sBrewery SEPARATOR '/') AS sBreweryColab FROM tblbeercolab INNER JOIN tblbrewery ON tblbeercolab.iBreweryID = tblbrewery.iBreweryID GROUP BY iBeerID) AS tblColab ON tblColab.iBeerID = tblBeer.iBeerID LEFT JOIN (SELECT iBeerImageID, iBeerID, concat('/images/beers/',iBeerID,'/',sImage) AS sBeerImage FROM tblBeerImage WHERE iMain = 1) AS tblBeerImage ON tblBeerImage.iBeerID = tblBeer.iBeerID LEFT JOIN (SELECT iBreweryID, concat('/images/breweries/',iBreweryID,'/',sImage) AS sBreweryImage FROM tblBreweryImage WHERE iMain = 1) AS tblBreweryImage ON tblBreweryImage.iBreweryID = tblBeer.iBreweryID LEFT JOIN (SELECT iBeerID, MAX(dBagged) AS dBagged FROM tblUserPub WHERE iPubID = 18960 GROUP BY iBeerID) AS tblUserPub ON tblUserPub.iBeerID = tblBeer.iBeerID ORDER BY dBagged DESC