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 (44674,18185,45286,44868,18650,45042,28313,45051,3883,37267,13988,30135,45229,44884,18981,4686,44866,18237,18427,44858,44836,44873,44687,22509,17527,24411,44765,16885,44848,17981,13425,18900,36472,44865,45561,44869,44867,44849,16935,17492,44739,44878,17351,28530,37057,45421,17278,44764,18572,44711,44671,18688,44854,44835,5410,8753,17848,18652,6875,17835,18648,17601,18996,24441,17756,45567,17092,17114,14622,10402)
Unknown column 'np.person' in 'where clause'