O ženách, které dělají to, co milují
Příběh

Motto

Zúčastním se
ŽENY, KTERÉ INSPIRUJI (0)
SELECT DISTINCT * FROM ( (SELECT a.*, l.like_created AS created FROM agregator a LEFT JOIN likes l ON a.agregator_id = l.agregator_id WHERE l.users_id = 82843 AND a.item_is_deleted = 0 AND a.item_is_hidden = 0) UNION (SELECT a.*, c.comment_created AS created FROM agregator a LEFT JOIN comments c ON a.item_type = c.item_type AND a.item_id = c.item_id WHERE c.users_id = 82843 AND a.item_is_deleted = 0 AND a.item_is_hidden = 0) UNION (SELECT a.*, r.review_created AS created FROM agregator a LEFT JOIN reviews r ON a.item_id = r.tests_id AND a.item_type = 'test' WHERE r.users_id = 82843 AND a.item_is_deleted = 0 AND a.item_is_hidden = 0) ) a GROUP BY agregator_id ORDER BY created DESC LIMIT 0, 20
Unknown column 'r.tests_id' in 'on clause'