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 (44868,18719,17657,17335,5259,44767,18427,44835,18652,6875,5993,17009,44848,5410,44861,44849,44766,6862,45051,28313,13988,18996,44669,3,44674,44689,44745,18353,18894,37267,44863,6609,4765,32454,30135,17755,44671,44866,18042,24412,44894,45515,18430,45262,44858,44768,24411,13425,45072,18981,45229,31354,44878,44867,18286,17114,44764,17092,10402,17237,4686,45517,44855,44854,22509,16935,24441,18648,44687,14622)
Unknown column 'np.person' in 'where clause'