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 (44866,18996,17114,24412,45177,45515,8753,44745,9341,44836,44767,44640,17351,28530,18353,44764,45262,45567,17904,16885,18719,17601,18981,45180,19078,19057,44870,44766,17657,14402,16935,10402,44848,44861,17703,17092,44762,6875,14622,17556,44837,31354,45286,44853,3,5259,3883,44835,18172,18301,44863,44851,17492,18446,30135,36472,17756,44875,30986,44868,18185,4686,18286,45516,17771,17237,44845,45051,17755,30963)
Unknown column 'np.person' in 'where clause'