Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45180,44855,44868,45516,30963,45421,17848,18648,44674,44762,44669,17527,44766,3,32454,14622,3883,44764,44863,45515,44775,22509,44849,45072,17009,17335,44851,44865,17351,24412,45262,9341,17278,44739,44858,45561,18185,44853,44765,18572,45277,18427,37267,19078,18688,36472,44767,44873,44845,44687,45042,18981,8753,44875,44884,44867,18353,44848,24441,17657,17492,34194,45286,4765,18652,44671,28313,44531,45518,18237)
Unknown column 'np.person' in 'where clause'