Query failed select distinct tb_akoll.id, tb_akollvinst.id as akv, fd_anordnarnamn, fd_wwwadress, fd_epost, fd_url_at_ili, fd_contact_epost, fd_password, fd_adress, fd_gps, fd_telefon, fd_antal_assistenter, fd_antal_kunder, fd_transindex,tb_akoll.fd_orgnummer, fd_schema_tool, tb_akoll_x_lan.fd_lan, tb_akoll_x_lan.fd_type, tb_akoll.fd_show from tb_akoll inner join tb_akoll_x_lan on (tb_akoll.id = tb_akoll_x_lan.id) left join tb_akollvinst on (tb_akoll.id = tb_akollvinst.id) where 1=1 and tb_akoll.fd_show in (2,3,4) and tb_akoll.fd_show != 4 and fd_show != 4 and fd_kollektivavtal not regexp '^(Arbet|alm|vår|kf|pa|pr|h)' order by tb_akoll_x_lan.fd_type asc, fd_sort, fd_anordnarnamn, fd_lan, tb_akoll.id ,line: 683