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 (17492,17771,44863,44689,24441,18719,44845,45515,28313,44851,17351,17835,6609,44866,24411,3883,44768,24412,37267,44856,9341,44865,18301,17009,37057,18572,34194,17904,17335,39676,44848,30986,45346,44762,18042,31354,5410,45180,6782,44764,32454,18185,18900,6862,18688,18427,18650,18894,17703,44739,18279,44766,45518,5259,45567,44858,17237,6875,44884,45516,44853,44867,17601,17848,44674,45051,18446,28530,17114,13425)
Unknown column 'np.person' in 'where clause'