MySQL error: SELECT t0.*, `user`.* FROM `blog` as `t0` LEFT JOIN `users` as `user` ON (`t0`.userid = `user`.id) WHERE (`t0`.`parentid` = ) AND (`t0`.`show` = '1') ORDER BY `t0`.`dt` 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 ') AND (`t0`.`show` = '1') ORDER BY `t0`.`dt`' at line 1