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 (18185,18042,6609,4765,39676,13425,44745,14402,44765,8753,45042,44845,17771,18301,18688,44867,45177,44894,17492,44858,18572,18719,45043,17904,17755,17527,44873,44848,44861,44869,45072,14622,18427,44878,24441,44669,5259,44865,45180,3883,34194,18286,19057,5410,45286,18894,44854,24412,44835,30135,45567,30986,45421,18430,24438,45518,45229,44689,32454,45561,18900,44766,44711,18446,45051,4686,45517,44870,18981,19078)
Unknown column 'np.person' in 'where clause'