SELECT loginid FROM `tb_ItemOrderList` as a right join `tb_ItemOrder` as b on a.od_id= b.od_id where it_id = and exp_status != '102' and loginid = ''

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 'and exp_status != '102' and loginid = ''' at line 4

error file : /contents/item.view.new.php