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 (13425,18430,45262,44745,45346,18172,30986,4686,32454,18894,6862,18996,18427,45517,44671,44674,18650,44685,44865,17703,6609,17351,19078,18042,45072,8753,5993,17771,17904,18794,6782,45515,45229,44856,37267,44775,44849,17114,39676,36472,44855,44848,45177,45042,17092,45277,17981,45180,17335,16885,44739,18237,17657,22509,17237,45518,13,24438,18446,17009,44861,45286,5259,44767,18719,13922,44711,34194,44853,18981)
Unknown column 'np.person' in 'where clause'