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 (18652,44671,44687,44865,3883,17335,17351,24438,18688,18286,44768,5388,17092,44863,44894,24411,6609,44767,18430,44711,44856,17527,44685,17839,18427,9341,17755,37057,44854,17556,18719,6875,17835,45043,17114,34194,44866,13,45561,13988,44853,44837,18572,45515,32454,18900,44875,45262,5259,43800,8753,18996,18279,44869,17771,14622,18446,45072,44861,17009,44849,18301,17278,13425,45518,45180,18172,44835,44878,6782)
Unknown column 'np.person' in 'where clause'