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 (44870,44851,28313,24411,44775,17703,45177,16885,5410,44711,24412,44845,13922,44873,13,17351,17237,44671,14402,18894,18042,17335,18794,10402,44868,18237,45517,17981,44674,44640,44866,18279,45229,18172,44768,44849,44767,4765,3,45346,17848,14622,18301,13425,18719,44861,44867,17835,18185,43800,17092,18353,16935,44894,6609,18648,31354,30135,44669,18996,6862,17657,44848,45561,45043,34194,17601,44764,44685,18446)
Unknown column 'np.person' in 'where clause'