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 (44851,18719,44531,44674,18648,18981,9341,19057,44739,19078,44861,10402,18185,18353,45277,17835,32454,43800,45051,44854,44766,36472,44866,44764,44762,44835,30963,44836,17492,18279,45567,45517,44855,44689,13425,44671,44849,37267,45346,17601,45516,44865,30135,5388,45042,8753,16935,34194,44863,17527,44765,13988,45177,17848,17981,17092,44767,44894,18301,24412,44856,44875,17351,44745,18430,17703,6875,17335,6782,44884)
Unknown column 'np.person' in 'where clause'