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 (17755,17601,17237,44689,14622,45262,45286,16885,18279,17839,18446,17527,17835,17092,44861,6875,44875,9341,45072,36472,45346,17657,44856,44669,30963,45042,24412,44764,6862,18652,18286,18648,18172,45518,17703,34194,18427,44865,31354,18650,4686,45517,18719,43800,44685,44687,44671,18794,18996,18353,17771,39676,45421,19057,45043,8753,37057,14402,17335,37267,44766,24441,44854,44866,44836,5410,18042,44894,17848,44711)
Unknown column 'np.person' in 'where clause'