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 (24411,18446,24438,18794,17527,44765,44849,44674,18688,18572,45561,44870,18172,44669,45567,18900,44835,45229,13922,45518,28313,44685,18652,4765,17755,18996,34194,18430,18286,28530,44854,18237,45043,14622,18353,44671,44851,44855,44766,24412,44848,17756,44865,44894,44858,18427,17556,17009,44689,44875,4686,30135,36472,17114,17601,5259,44878,44845,18301,37267,18185,10402,45346,18042,6875,31354,17771,18719,44868,19078)
Unknown column 'np.person' in 'where clause'