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 cache_id = 'a:8:{s:4:\"site\";N;s:4:\"cltn\";b:0;s:5:\"ainfo\";i:20;s:5:\"up' at line 4
SELECT HIGH_PRIORITY cache FROM yew.productCacheJsArray WHERE productid = AND cache_id = 'a:8:{s:4:\"site\";N;s:4:\"cltn\";b:0;s:5:\"ainfo\";i:20;s:5:\"uprsh\";b:1;s:5:\"prshs\";a:2:{i:0;i:456;i:1;i:457;}s:5:\"selop\";N;s:8:\"sltdInvs\";N;s:8:\"dfltInvs\";N;}' AND lastModified > DATE_SUB(NOW(), INTERVAL 900 SECOND)