err:SELECT gwork_date, gwork_kind, gwork_starttime, gwork_endtime
FROM girls_work
WHERE shop_uid = 'lsnn'
  AND girls_uid = 
  AND gwork_date IN('2010-09-06','2010-09-07','2010-09-08')
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 gwork_date IN('2010-09-06','2010-09-07','2010-09-08')' at line 5