SQL Error on: SELECT resource.* FROM resource,product_resource as dr WHERE AND dr.product_id= GROUP BY ORDER BY dr.display_order

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 'GROUP BY ORDER BY dr.display_order' at line 1