select *,gdc_cat_producten.parent as PPP from gdc_cat_producten,landen,mod_winkelform_btwcodes,gdc_cat_niveaus where gdc_cat_producten.parent=nivId and proBtw=btwId and proLand=lanId and (proPromotie=1 or (proPer>0 and proGratis>0 && proUitverkocht!=1)) and gdc_cat_niveaus.publiceren=1 and gdc_cat_producten.publiceren=1 order by proPromotie desc,proNieuw desc, gdc_cat_producten.proTitel asc,proId order by gdc_cat_producten.volgnummer,proId
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by gdc_cat_producten.volgnummer,proId' at line 1