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 (44685,17114,18427,17703,39676,6782,45072,17835,13425,44848,44854,4765,30986,36472,45567,6875,45518,19078,44767,18172,5993,44875,4686,45262,17756,45177,10402,44863,44764,44849,44868,17351,44768,17237,44640,18572,18719,13922,8753,44851,24438,44856,18650,17527,17771,44775,45516,44531,17839,17848,37267,18900,44711,17755,5410,44865,44866,44745,45515,18237,44878,45286,18996,45180,18286,44766,44894,3883,45346,5388)
Unknown column 'np.person' in 'where clause'