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 '20' at line 10 SELECT *
FROM comments
WHERE
flag = '1'
and name is not null
and message is not null
and message not like '%http://%'
ORDER BY
comments.createdate DESC
LIMIT ,20