Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (39676,45177,45042,17114,14402,5410,17703,6782,13922,16935,44764,45051,44851,44853,18996,44894,45517,45229,10402,17657,44848,22509,18719,44835,44863,44849,24411,44884,28313,44854,18172,6609,45516,44687,18427,44866,44762,30986,4686,44768,13425,17771,9341,3,16885,37057,45180,4765,45567,17335,17601,18042,24441,44739,45421,45277,31354,17904,17756,17835,17981,45286,17527,18894,44685,17351,6875,45072,45262,3883)
Unknown column 'np.person' in 'where clause'