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 (30986,44836,14622,44687,45262,44870,44640,17237,44861,17904,44868,6609,44878,44848,44867,45567,24441,44866,18430,44869,8753,36472,3883,44855,18427,10402,44854,28530,5410,44863,45042,44853,17981,17278,44775,13425,43800,18572,17839,4765,44669,44851,45177,16885,28313,18446,6782,17756,17835,6875,18279,18237,17114,18996,5388,45515,44875,17335,44531,44764,45229,45561,18794,18688,44849,44858,18648,45043,18981,44856)
Unknown column 'np.person' in 'where clause'