Invalid MySQL query: 1064: 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 'ORDER BY a.sortorder' at line 5
SELECT AS hub_id, AS extrabild_id,b.image AS extraimage, AS bildnamn
            			FROM extra_product_images_hub AS a 
            			LEFT JOIN extra_product_images AS b ON ( a.extra_product_images_id = )
            			WHERE a.producthead_id = 
                  ORDER BY a.sortorder