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 (8753,44875,44767,17835,44837,17904,24438,44854,44851,18894,14402,3,45277,13922,44836,37057,18430,24441,18794,17092,22509,19057,44866,17237,36472,18237,18279,16885,10402,18353,13,31354,44768,44856,17601,44870,45516,45042,44764,45567,17848,45177,5388,18650,17492,44845,18572,45515,45262,30963,18427,17114,5259,6609,18042,18185,44868,44869,44873,13425,44894,44711,4765,4686,44762,17703,44884,5993,18900,44858)
Unknown column 'np.person' in 'where clause'