SELECT * FROM `offers` , `offerscats` WHERE `offers`.`idoffer` = `offerscats`.`offerid` AND `published`=1 AND `holiday`=0 AND `idcat` = AND `offers`.`idoffer` !=0 AND `idc`=20 ORDER BY `added` DESC LIMIT 10
ERROR:
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 `offers`.`idoffer` !=0 AND `idc`=20 ORDER BY `added` DESC LIMIT 10' at line 5-3-1064
SELECT * FROM `offers` , `offerscats` WHERE `offers`.`idoffer` = `offerscats`.`offerid` AND `published`=1 AND `holiday`=0 AND `idcat` = AND `offers`.`idoffer` !=0 AND `idc`=20 ORDER BY `added` DESC LIMIT 10
function:que
from file:/home/webestde/public_html/modules/offers.php
from row:117
args:SELECT * FROM `offers` , `offerscats` WHERE `offers`.`idoffer` = `offerscats`.`offerid` AND `published`=1 AND `holiday`=0 AND `idcat` = AND `offers`.`idoffer` !=0 AND `idc`=20 ORDER BY `added` DESC LIMIT 10