MySQL Error Occured
1064: 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 '~ROSA Rhone/barge-491 and a.status != '1' and a.bargedocid not in(629,626,625,62' at line 3

QUERY = select * from tblcru_bargelink a LEFT JOIN tblcru_links b on a.bargelinkid = b.linkid where bargeid =491-A~ROSA Rhone/barge-491 and a.status != '1' and a.bargedocid not in(629,626,625,628,624,1146) order by a.show_order,a.bargedocid