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 (45180,44689,44875,45072,5410,18900,16885,24438,18172,17756,18719,44848,6609,45042,45277,45229,45518,3,18279,17335,3883,18353,17848,44766,45177,24441,44765,44853,44870,39676,18652,18427,44854,17835,32454,45517,44837,18446,17601,17771,18572,30135,24412,44531,4765,17237,19078,18185,44640,44745,45515,17092,36472,44867,14622,18981,18286,17351,44687,44762,45346,14402,17114,28313,44866,17755,9341,19057,13922,5993)
Unknown column 'np.person' in 'where clause'