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 (24441,18430,5410,45042,18279,17703,6862,4686,43800,44884,16885,37057,17351,28530,45421,37267,17981,18427,44861,45229,34194,17756,13,45180,31354,18648,5388,44870,19078,44894,3,17835,44868,24411,4765,44856,13425,18900,17527,44848,17492,44866,44875,17755,44669,45561,18688,45043,18652,24412,18446,18042,45277,22509,44837,44531,17771,44867,44762,18894,17237,19057,45072,45262,9341,45516,8753,18650,14622,44674)
Unknown column 'np.person' in 'where clause'