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 (17981,45518,44762,4686,17092,22509,17237,37057,18572,44861,13425,44671,18794,45277,17009,3,44894,18237,44685,18185,44531,36472,18981,17335,45051,44855,24412,13,17848,44745,24438,44866,44837,28313,24411,18353,18172,17839,18996,44875,44845,44767,44868,44689,17527,8753,45072,45042,28530,17556,19057,10402,44856,45346,18430,45177,18427,17756,44764,17835,45515,45043,18279,44865,18652,17351,45421,45229,30986,4765)
Unknown column 'np.person' in 'where clause'