SELECT tbl_topshoplog_id FROM tbl_topshoplog WHERE tbl_topshoplog_x_advertiser = AND tbl_topshoplog_logdate = 20120205 AND tbl_topshoplog_x_website = 15 LIMIT 1
#0 /home/eenkado/public_html/includes/classes/core/dbase.class.php(41): PDO->query('SELECT tbl_tops...', 2)
#1 /home/eenkado/public_html/includes/classes/custom/advertiser.class.php(248): dbase->query('SELECT tbl_tops...')
#2 /home/eenkado/public_html/includes/classes/custom/advertiser.class.php(232): Advertiser->checkLogRecord()
#3 /home/eenkado/public_html/modules/frontend/custom/frontend/actions/topclick.php(6): Advertiser->logTopShopClick()
#4 /home/eenkado/public_html/index.php(87): include('/home/eenkado/p...')
#5 {main}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 'AND tbl_topshoplog_logdate = 20120205 AND tbl_topshoplog_x_website = 15 LIMIT 1' at line 1