Bd zapytania do bazy danych: SELECT d_list_pictures_pl._id, d_list_pictures_pl._abstract, d_list_pictures_pl._author AS _pict_author, d_list_pictures_pl._image, d_list_pictures_pl._image_xl, d_list_pictures_pl._image_s, d_list_pictures_pl._image_xs, d_list_pictures_pl._stage_id, d_list_stages_pl._title, d_list_stages_pl._author AS _stage_author FROM d_list_pictures_pl, d_list_stages_pl WHERE d_list_pictures_pl._stage_id = d_list_stages_pl._id AND d_list_stages_pl._id = AND d_list_pictures_pl._brand_id = 1 ORDER BY d_list_pictures_pl._id
MySQL error 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 'AND d_list_pictures_pl._brand_id = 1 ORDER BY d_list_pic' at line 17