Notice: Undefined index: photo in /home/d/dsiirin/center.beer/public_html/bars/index.php on line 390 Notice: Undefined index: id in /home/d/dsiirin/center.beer/public_html/bars/index.php on line 410 Ошибка MySQL






Ошибка MySQL!
--------------------------

Номер ошибки: 1064


Текст ошибки:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 17


Текст запроса:

SELECT
beers.id,
beers.name,
beers.abv,
beers.og,
beers.ibu,
beers_styles.name AS "style",
breweries.name AS "brewery",
breweries.country,
beers.description,
bars_beer_menu.vol,
bars_beer_menu.price
FROM bars_beer_menu 
INNER JOIN beers ON beers.id = bars_beer_menu.beer_id
INNER JOIN beers_styles ON beers_styles.id = beers.style_id
INNER JOIN breweries ON breweries.id = beers.brew_id
WHERE bars_beer_menu.is_bottle = 0 AND bar_id =