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 (44878,44854,8753,44869,6782,37267,17237,44762,44884,18446,18286,30986,44767,44775,44640,44865,13,18719,31354,17755,5993,18301,44856,19078,17848,17657,17835,17981,18279,13922,18996,44853,45177,18353,45421,18572,6875,17351,17092,30135,37057,45229,3883,16935,45277,18900,44689,44836,44875,4686,17527,4765,45515,18237,36472,19057,44764,44873,17114,17556,13425,44863,44849,45072,34194,17278,14622,44765,18650,44745)
Unknown column 'np.person' in 'where clause'