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 'and s.id=v.station_id group by s.id order by play_duration desc limit 0, 18' at line 4
SQL: SELECT s . *, sum( v.exit - v.entry ) AS play_duration FROM ahm_stations AS s, ahm_visitors AS v and s.id=v.station_id group by s.id order by play_duration desc limit 0, 18