MySQL Query fail: SELECT posts.id,posts.title,posts.tags,cat.title AS cat FROM posts LEFT JOIN posts_category cat ON cat.id=posts.type
WHERE type= and status=1 and posts.id != 14440 order by date DESC limit 5
MySQL Error:
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 'and status=1 and posts.id != 14440 order by date DESC limit 5' at line 2