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 a.id AS hub_id, b.id AS extrabild_id,b.image AS extraimage, b.name AS bildnamn
            			FROM extra_product_images_hub AS a 
            			LEFT JOIN extra_product_images AS b ON ( a.extra_product_images_id = b.id )
            			WHERE a.producthead_id = 
                  ORDER BY a.sortorder