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 (17755,45561,45277,18650,17556,45567,8753,19078,44866,10402,24412,17703,5259,44854,24411,17756,45518,45515,22509,37057,44767,18185,18353,18042,30986,9341,3883,45286,17981,28313,17904,44869,44711,45262,18286,17848,31354,44745,18446,44878,17278,44884,43800,17839,44845,45229,44865,44851,17835,17351,13425,45346,44739,32454,14402,18996,45051,18900,44669,5388,18172,13,4686,44531,17335,5410,44764,44689,45516,34194)
Unknown column 'np.person' in 'where clause'