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 (24438,32454,28530,44861,5993,45421,17904,17839,14622,18427,45277,44689,22509,44836,31354,44863,13,44766,44775,17703,44711,18900,44671,17848,19057,45177,17114,44685,5259,44873,44875,4686,16935,6609,4765,45516,45072,44837,17601,24412,3,44767,18794,44878,44854,30986,13988,18353,5410,44868,6862,10402,17556,18430,44762,18652,45515,44858,17009,45346,8753,17237,17492,44745,44884,18185,18688,45042,45043,44867)
Unknown column 'np.person' in 'where clause'