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 'LIKE '% PA%' OR group by c.posting_id order by c.post_date desc, dd desc , ti' at line 1

select c.id ,substring(c.post_time,LENGTH(c.post_time)-1,2) AS dd,TIME_TO_SEC(c.post_time) as timeformat,c.posting_id ,c.location, c.compensation, c.post_time, c.post_date,c.url as curl,c.title,c.url_image as iurl,c.post_email from state_newyork c where c.city_id=187 and c.cat_id='98' and c.post_date != 'EXPIRED' AND c.location LIKE '%Sayre%' OR LIKE '% PA%' OR group by c.posting_id order by c.post_date desc, dd desc , timeformat desc limit 0 , 101

[TEP STOP]