select * from bukken left join staff_bukken on staff_bukken.sb_rid = bukken.bu_rid where sb_tanto_id = and bukken.bu_rid is not null order by sb_upddate desc limit 20You 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 bukken.bu_rid is not null order by sb_upddate desc limit 20' at line 3