1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') kc JOIN complects f ON (f.id=kc.front_complect) JOI...' at line 17

SELECT f.tyre_width as front_tyre_width, f.tyre_height as front_tyre_height, f.radius, r.tyre_width as rear_tyre_width, r.tyre_height as rear_tyre_height FROM ( SELECT DISTINCT front_complect, rear_complect FROM kfz_complects WHERE serial = 1 AND kfz_id= ) kc JOIN complects f ON (f.id=kc.front_complect) JOIN complects r ON (r.id=kc.rear_complect) WHERE r.radius = f.radius ORDER BY f.radius

[TEP STOP]