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 (6782,28530,18572,17657,5410,30986,18719,17351,17904,18353,44855,18981,10402,22509,44863,44764,24412,19078,45517,17556,32454,18996,13,45346,44856,30135,18894,6609,44669,16885,44835,17839,13988,17835,5259,45567,18794,18688,18279,34194,45042,18042,16935,14402,18650,14622,45518,4765,17755,18237,18652,44866,44867,9341,45043,17527,44674,17278,45262,45421,45277,44766,36472,45229,44768,30963,44858,44875,4686,44870)
Unknown column 'np.person' in 'where clause'