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 (44739,4765,14402,44845,17839,31354,34194,6862,44685,44894,45177,10402,17335,44858,44867,45051,44765,44869,44848,5410,18981,18650,14622,8753,44866,18286,18279,44674,45517,17755,45180,24438,44854,18572,17657,17237,22509,6609,43800,18172,16935,37267,17492,5388,45515,45346,44764,18185,6782,17981,44851,24441,17009,4686,44836,44640,30963,32454,44766,45516,44849,44689,13425,6875,44856,18430,45043,18688,18427,24412)
Unknown column 'np.person' in 'where clause'