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 (18688,44875,44768,44866,30963,44870,3883,17703,17092,45043,18430,18446,6862,18572,45042,44873,44884,13988,4686,5259,8753,5410,4765,14402,17756,45180,44854,45346,45072,5993,17904,44745,44669,44775,17657,18794,44856,34194,30135,44851,44858,13922,6782,17556,45518,19078,44869,44640,18894,9341,22509,44863,45517,32454,18652,17492,17335,44868,44767,6609,24411,44764,45421,44861,44855,17351,17237,18650,44837,45567)
Unknown column 'np.person' in 'where clause'