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 p.dp_id, p.dp_name' at line 6
SELECT p.dp_name, p.dp_logo, p.dp_link FROM Pros p WHERE p.dp_id = GROUP BY p.dp_id, p.dp_name