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 (4686,44861,18427,17756,17335,13425,18648,44767,17601,18286,44837,45346,44765,44853,17657,13922,32454,5388,17351,45516,10402,17492,44669,28313,18719,19057,44894,45072,18353,22509,3,8753,44775,17904,44711,45051,36472,17114,18572,45180,24412,6782,45043,44689,31354,18185,44764,5410,44671,14402,18042,18430,44865,44845,30986,44869,6609,24438,19078,37057,18794,44766,44868,45286,45177,16885,6862,45515,30135,45561)
Unknown column 'np.person' in 'where clause'