Error: Unable to perform query: SELECT * FROM PRODUCT_GROUP pg INNER JOIN PRODUCT_GROUP_JOIN pgj ON pg.group_id = pgj.group_id WHERE pgj.product_id = order by group_name :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 group_name' at line 2