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 (17237,45262,37267,18650,17114,44894,44869,10402,17835,45042,13,18286,17703,5410,17092,18430,18900,45277,18894,17527,45286,24438,24411,44762,45567,44868,45051,45515,18794,19057,45517,17848,30963,44849,45421,6875,18172,45346,17755,17601,8753,37057,18981,44884,32454,18301,44671,30986,45043,44875,17009,14622,6862,44531,18042,14402,45561,39676,34194,18648,44854,44851,45177,44768,44855,44764,3,44767,44836,4765)
Unknown column 'np.person' in 'where clause'