string(918) "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 tTrack.track_shw_as_single = 1 AND track_active = 1' at line 7


/* FILE: /home.php/1 Sun, 23 Nov 2014 15:41:53 +0000 */
SELECT tTrack.*, tArtist.artist_id, tArtist.artist_name, tLabel.label_id, tLabel.label_name, tTerritory_group.territory_group_name FROM tTrack 
		LEFT JOIN tArtist ON tTrack.track_artist_id = tArtist.artist_id
		LEFT JOIN tLabel ON tTrack.track_label_id = tLabel.label_id
		JOIN tTerritory_group ON  tTrack.track_territory_group_id = tTerritory_group.territory_group_id 
		JOIN lTerritory_country ON tTerritory_group.territory_group_id = lTerritory_country.territory_id 
		JOIN tCountry ON lTerritory_country.country_id = tCountry.country_id 
		WHERE tCountry.worldpay_code = 'GB' AND tTrack.track_id = AND tTrack.track_shw_as_single = 1 AND track_active = 1"