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 '-8, 1' at line 1select /* SQL_CACHE */ subject from submissions where status = '1' and (CONCAT(show_date,' ',show_time) <= now()) AND (subject not like '%PG13N%' AND subject NOT like '%PG13 N%' and subject NOT like '%PG13V%') AND subject like '%a%' order by show_date desc, show_time desc, id desc limit -8, 1