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 (44854,34194,5259,37057,44856,45229,17601,18185,44873,44875,43800,6782,45051,44765,30986,44836,24411,44739,18794,22509,44861,44858,14402,18719,45518,17835,44531,28313,18237,44894,10402,44766,44711,5993,18996,44689,19057,17556,16935,17351,8753,18688,17009,44671,31354,17527,17904,6609,39676,44869,44863,45346,17848,18301,18981,44868,4686,13988,44849,45277,44775,45516,44865,18900,17092,17114,44853,4765,45286,19078)
Unknown column 'np.person' in 'where clause'