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 Status=1 or Stationid='100' and Status=1 order by ID desc limit 4' at line 1