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 (44875,17981,44640,17237,17351,17835,17492,44835,45346,44837,44768,18427,44764,17527,44848,39676,16885,18650,45262,45421,44687,17848,45515,18794,44767,4765,18301,18572,45177,18286,44884,44674,4686,44854,5259,44745,28313,17092,6609,31354,18172,18353,19078,6782,17009,14622,9341,18185,16935,44866,45180,44689,17771,45051,30135,44868,44685,17703,45072,18996,24411,18894,24441,18279,37267,18237,36472,5993,45042,37057)
Unknown column 'np.person' in 'where clause'