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 (17092,18353,18279,17009,44856,44854,31354,39676,17601,44848,44711,17835,22509,45515,18794,44640,45421,44894,44762,30135,17755,17703,44764,45567,18652,24412,4686,3883,18894,16935,44687,6782,17351,17981,17237,13,44853,4765,44858,44867,14402,6862,18286,32454,17335,17848,44768,44855,13988,16885,18648,13922,44836,28313,43800,30986,18237,14622,5410,45346,44875,44745,17114,44671,18427,6609,45516,44765,13425,17657)
Unknown column 'np.person' in 'where clause'