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 (44873,45177,31354,18353,18572,44767,18301,44711,44875,5410,45518,18648,44685,18172,44764,45277,44849,45421,13988,17839,45072,44870,3,18237,45042,5259,44836,44762,45561,17904,44775,3883,10402,17703,17492,17237,44851,22509,18185,17527,45515,16885,24438,17835,30986,30135,17771,44854,18446,8753,44866,45516,45346,44669,17981,44858,44861,18981,13,45051,6609,45229,44739,44766,36472,17601,18652,18042,44894,5388)
Unknown column 'np.person' in 'where clause'