MySQL query error: file - , line -
SELECT a.id,a.link,a.name,a.bots,a.ip,a.enable,a.banner,a.info,a.r_id, b.link as blink, c.r_name FROM tmc_li_link_info a,tmc_li_back_link b,tmc_li_razdel c WHERE a.r_id=c.r_id AND a.id=b.id AND b.s_id=1 AND c.r_id= ORDER BY a.id LIMIT 0,10
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 'ORDER BY a.id LIMIT 0,10' at line 3