db query() error : SELECT posts.*, (SELECT COUNT(*) FROM comments WHERE comments.kind = posts.kind AND comments.id = posts.id) AS comments FROM posts WHERE kind = 'post' AND category_id = 2 ORDER BY date1 DESC, id DESC LIMIT -5, 5
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-5, 5' at line 1