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 (18794,45567,44531,8753,30135,17351,43800,18172,45051,44861,4765,5259,18688,44685,4686,36472,17114,19078,17848,18185,16935,17835,44868,6875,34194,18427,18719,17527,44711,44775,17492,18430,44851,45561,44848,44870,18652,13922,14402,44875,32454,31354,44762,9341,44767,18301,44856,18648,44739,45277,44866,16885,30986,13988,44858,17755,45516,6609,44855,18237,45072,19057,3883,39676,44873,44867,44674,28530,18279,17237)
Unknown column 'np.person' in 'where clause'