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 (45180,18794,18688,18572,44858,30963,18185,45346,45042,44765,45051,6782,18301,45043,17755,44867,44856,45262,17351,10402,4686,17237,44851,22509,18353,44855,44837,17756,44854,6862,18286,16935,45277,44869,44745,18719,28313,44861,5993,17601,18237,17839,16885,44894,18981,37267,18042,44849,44866,44863,14622,45229,24438,45518,44836,6875,45517,44640,45567,31354,28530,17114,17335,18652,44775,18894,39676,44845,37057,45286)
Unknown column 'np.person' in 'where clause'