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 (17351,17981,44868,18794,44865,4686,44878,17278,30963,16935,18894,31354,44767,44851,34194,44861,44762,17839,3883,44745,17848,5410,44867,6875,17657,44854,17904,17835,44884,18650,5388,6782,44835,45286,45177,44775,36472,28530,30986,39676,45567,18172,18446,8753,18648,18652,6862,44765,44853,18279,44849,44764,45043,14622,18286,17556,18237,24411,9341,44687,13988,18042,44766,45518,24412,44836,44856,17237,44837,10402)
Unknown column 'np.person' in 'where clause'