Error description: 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.id ORDER BY p.posicion ASC limit 3' at line 1
SELECT pd.id, pd.nombre, p.id FROM productos p, productos_detalles pd WHERE p.id = pd.producto_id AND p.id = GROUP BY p.id ORDER BY p.posicion ASC limit 3