Query Failed: select * from cat_news where id_cat_news = ;
SQLSTATE[42000]: Syntax error or access violation: 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 1

Query Failed: select * from banners where id_tp_banner = 1 && id_cat_banner = order by rand() limit 6;
SQLSTATE[42000]: Syntax error or access violation: 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 'order by rand() limit 6' at line 1

Query Failed: select * from news where (data_programada = '' || data_programada is NULL) && (id_cat_news = && id_manchete = '1' && id_news != ) order by STR_TO_DATE(data, '%d/%m/%Y') DESC, id_news DESC LIMIT 6;
SQLSTATE[42000]: Syntax error or access violation: 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 '&& id_manchete = '1' && id_news != ) order by STR_TO_DATE(data, '%d/%m/%Y') DESC' at line 2

Query Failed: select * from news where (data_programada = '' || data_programada is NULL) && (id_cat_news = && id_news != ) && id_news NOT IN (, , , ) order by STR_TO_DATE(data, '%d/%m/%Y') DESC, id_news DESC LIMIT 6;
SQLSTATE[42000]: Syntax error or access violation: 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 '&& id_news != ) && id_news NOT IN (, , , ) order by STR_TO_DATE(data, '%d/%m/%Y'' at line 2
news:


Veja Também