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 (18648,44848,17848,17703,18688,18719,17527,18427,18286,18794,4686,44873,18237,10402,36472,44674,8753,44855,17335,32454,45043,17278,44739,45177,17237,31354,44765,13922,44671,45042,13425,44875,18430,44868,6609,44775,45567,45180,45421,17835,17839,44762,28530,24412,28313,44711,44894,44861,18185,37057,18652,17114,44856,3,17771,44884,18900,14402,44767,17657,45072,18172,5259,44764,44685,44853,45515,44869,17492,44854)
Unknown column 'np.person' in 'where clause'