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 (18794,18900,34194,18996,17981,18286,18446,44767,44865,16885,44765,17756,45277,3,43800,44884,17771,44669,14622,17527,32454,37267,24412,45518,44875,18042,44868,44866,6782,13,3883,18688,18652,22509,14402,39676,44768,18237,44764,18894,13425,30963,18301,31354,19078,9341,45515,44775,44873,44894,44869,45346,44861,8753,44762,17278,24441,44711,44849,18981,45286,17556,45180,45051,45042,44854,17835,10402,5388,18172)
Unknown column 'np.person' in 'where clause'