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 (17835,45180,16885,24438,44863,18650,45346,44640,18981,24412,44685,44775,28530,32454,44873,18353,18286,18430,5259,17904,44531,17755,17237,44865,18652,44835,39676,45421,30135,18996,44858,44689,24411,44845,17771,3883,18446,13425,6782,17009,17703,5410,5388,18572,18301,44768,13988,44767,45043,14622,18172,44867,44849,44854,44853,14402,17527,44764,18237,19057,44866,45567,44674,44711,45072,17335,45277,44762,13922,44884)
Unknown column 'np.person' in 'where clause'