Syntax error, unexpected token ), near to ' ORDER BY ap_date DESC', when parsing: SELECT AlbumPhotos.* FROM AlbumPhotos WHERE AlbumPhotos.pa_id IN () ORDER BY ap_date DESC (99)