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 (44711,17755,44849,45567,44768,31354,18794,4765,44851,30135,45229,13425,19078,44884,22509,18652,44856,44869,24438,3,5993,16885,45072,44865,28530,44640,44868,36472,44866,37267,45286,17335,44687,18900,44775,18650,24441,44837,44671,44836,44875,17839,45051,45277,45518,17756,44854,18237,18286,5259,45042,45421,6782,44870,16935,17009,18996,44878,14402,44894,4686,17657,13922,24412,17904,45177,44858,39676,18430,17114)
Unknown column 'np.person' in 'where clause'