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 (44689,4686,17009,45072,18286,18042,44894,17335,18981,6782,44711,17703,24441,8753,30986,18572,17771,44836,24411,45286,18301,39676,44764,44856,18652,17556,45516,13425,18430,45043,3883,17755,44851,6609,44867,18688,4765,44869,17351,44863,44674,44835,45421,36472,44745,18279,44884,28313,17981,17527,44855,24412,24438,17492,18900,44873,45515,44868,19057,44765,44858,14402,16885,17839,44854,44766,18996,44762,18794,44767)
Unknown column 'np.person' in 'where clause'