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 (44867,19078,24412,13922,14622,30986,44884,37267,31354,44767,44762,14402,44765,3883,44711,44766,44866,17755,30135,44869,18900,44863,4686,17556,18172,44687,44861,44865,44685,18650,17835,18981,17335,44640,28530,17237,32454,44845,17981,6782,18652,28313,17756,45229,18894,36472,45262,5410,18996,5259,44835,18353,44739,44775,39676,3,17703,5993,45177,34194,16935,44531,13988,18794,37057,44764,18286,44849,17278,10402)
Unknown column 'np.person' in 'where clause'