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 (13,17601,44762,44849,5259,17114,17848,45518,18894,18719,17981,4686,16885,24438,44868,17335,17771,44873,18794,18353,44640,24441,44863,44669,45421,44768,30963,13988,17092,18301,45286,13922,44869,18688,44866,18172,28530,45072,44711,45561,8753,18430,17237,44884,45516,6782,45177,17351,44766,44767,39676,14622,18996,44851,45180,18427,22509,44878,45043,44854,24411,45346,17839,18286,32454,19057,6609,44856,44848,44861)
Unknown column 'np.person' in 'where clause'