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 (6782,17492,18900,44870,44863,14402,44868,45180,34194,32454,44873,17839,44861,18719,24411,28530,44687,18688,44856,5259,45346,44854,44869,45517,44875,18286,19078,44894,18172,30986,44766,18301,9341,18996,44674,24412,18981,17703,39676,17848,45262,17904,4686,13922,28313,18427,6862,45072,17114,14622,44884,16885,44867,44878,44531,44853,6609,18279,18237,44848,5410,17755,45042,17278,45277,19057,45518,3,45286,31354)
Unknown column 'np.person' in 'where clause'