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 (18652,24412,10402,45518,44865,44868,6782,44671,44855,17351,3883,44866,18719,5993,5259,45567,36472,44837,45229,30963,8753,17839,17237,17981,44856,13,22509,18427,18279,18688,30986,18430,44687,17492,44674,32454,44861,44764,44869,44762,17835,44768,45421,45180,3,17335,13988,45177,44849,18650,28313,18042,44854,45072,17092,44878,18894,44873,45346,5410,45515,16935,44531,4765,18572,18172,6609,44765,18996,24438)
Unknown column 'np.person' in 'where clause'