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 (39676,30986,18900,17771,6862,3883,13922,18648,18446,18286,44853,18996,13,18572,45180,44836,18894,18719,17278,44854,37267,17839,45421,18981,44739,10402,4765,17755,17657,28530,17092,43800,45177,44866,45072,18650,17703,17114,44689,18794,44671,44531,45043,24441,17904,45567,9341,16885,44764,45515,45229,8753,44849,17351,45346,18652,19078,44768,18688,36472,44767,45286,24412,18301,44869,17981,44861,17335,44711,44745)
Unknown column 'np.person' in 'where clause'