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 (45516,4765,44689,45346,13922,16885,18719,18301,3,44745,44768,18794,17114,18446,13988,45180,44866,45561,17527,13425,28313,17492,44873,45042,44865,44849,19057,39676,18286,18427,28530,18652,45043,18042,18648,10402,44764,22509,44711,34194,4686,45051,44835,32454,18688,18650,17351,17835,45262,45229,18996,44894,14402,44856,45072,17335,6609,30135,18237,44739,44868,3883,44878,44531,36472,44845,17839,45518,44875,31354)
Unknown column 'np.person' in 'where clause'