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 (44856,17351,44861,34194,24438,44854,44875,17492,18652,4765,31354,18794,14622,44845,18042,17092,8753,6875,18185,44671,45262,17771,44853,45286,39676,17601,6782,5410,13425,18981,19057,17756,44884,45515,30963,17556,18688,37267,37057,44851,16935,17755,44873,18900,17839,30986,17114,28313,18353,45072,3,17527,44869,44711,45346,44836,18237,18279,28530,44767,44894,22509,18301,45051,18172,44640,44865,45177,9341,44868)
Unknown column 'np.person' in 'where clause'