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 (24438,44739,30135,44870,18894,17904,45516,18650,19057,44866,44853,17492,45277,17755,18981,44766,5993,44765,17839,44863,18353,18652,24412,18172,44873,44764,3,10402,44835,45286,44689,4686,19078,44762,18185,18042,24441,45517,18237,39676,13425,18719,44687,44531,18648,44745,4765,28530,18279,45177,44640,18430,17114,44868,44767,45051,44861,5410,13,16885,5259,45421,31354,44865,45518,17771,45072,18794,34194,22509)
Unknown column 'np.person' in 'where clause'