During: "SELECT c.* , u.`username` as username FROM `fleks_mod_comments` as c , `fleks_mod_webusers` as u WHERE c.`cid` = 10091 AND c.`ref_type` = 1 AND c.`ref_id` = AND c.`user_id` = u.id ORDER BY c.date DESC LIMIT 5 " failed: "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 c.`user_id` = u.id ORDER BY c.date DESC LIMIT 5' at line 1"SQL error. Check mysql_error_2012-02-06.log