Možné pomocí Sub-Query
NEBO UNION
je možné získat COUNT
z více tabulek. Zkuste tento dotaz:
SELECT
(SELECT count(*) FROM `car_model` WHERE user_id=3 ) AS car_model_count,
(SELECT COUNT(*) FROM `list_item` WHERE user_id=3) AS list_item_count,
(SELECT count(*) FROM `part_item` WHERE user_id=3) AS part_item_count;