MySQL Error

Query Error: SELECT `posts`.`id`, `posts`.`title`, `posts`.`body`, `posts`.`tags`, `posts`.`added_on`, `posts`.`pic_url`, `posts`.`visits`, `posts_cat`.`title` AS cat_title, `posts_cat`.`slug` AS cat_slug, `posts_cat`.`in_menu` AS cat_in_menu FROM `posts` LEFT JOIN `posts_cat` ON `posts`.`sub_of`=`posts_cat`.`id` WHERE

Reason: 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 '' at line 14