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 (44867,44868,44869,18286,22509,17351,5388,45229,44845,17092,44766,30986,44768,17756,18430,37057,18648,44884,19078,37267,17237,31354,45516,28313,17657,44685,44878,44851,24441,45518,17835,45421,9341,44848,13,17848,19057,45042,39676,44855,16885,28530,44861,44764,6782,3,18279,13425,34194,13922,17527,17009,24438,18981,30963,44854,14622,45043,45567,44640,17904,18719,5259,44858,36472,30135,44849,44894,18427,18900)
Unknown column 'np.person' in 'where clause'