SQL/DB Error -- [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 artwork_id desc
limit 1' at line 5]
sql query:
select * from master_inventory
where artist_id=''
and list_not_list = '1'
and artwork_id<
order by artwork_id desc
limit 1