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 (45567,18572,18427,18719,4765,17904,44767,44762,17492,44866,17703,16885,44869,44836,37267,45561,45517,32454,45518,6782,19078,17756,44853,5388,44894,4686,36472,18894,17114,44768,44873,17755,44878,18981,17981,44856,44863,44845,44861,6875,9341,45051,45180,24441,44855,18042,16935,6862,45421,44739,44765,45516,22509,18996,45042,17771,45346,17839,45277,24412,6609,10402,18430,44687,39676,18279,8753,5410,18237,18301)
Unknown column 'np.person' in 'where clause'