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 (45043,45072,17756,24412,8753,44868,44848,18185,45421,44669,17703,18430,17351,17492,44867,44835,17904,9341,19078,5410,45042,43800,17601,44766,30986,6782,44689,10402,44836,18719,45517,44894,17981,44845,17009,39676,28313,17527,44764,18794,18301,44640,17092,44674,5388,44858,17335,5993,18237,18286,18894,18981,3,37267,24441,34194,19057,44870,18172,44768,44856,18900,45516,44861,44739,24438,18648,44685,45515,44687)
Unknown column 'np.person' in 'where clause'