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 (18353,18237,37057,17092,44869,17114,45072,45277,19057,18794,5993,18427,17527,18996,44711,13425,17756,30986,18648,18430,18185,17755,24412,18446,4765,18688,22509,16935,45042,17848,44856,37267,45516,45043,44531,45180,18172,17351,44865,13988,32454,30135,44767,45561,39676,44855,18894,44866,18279,44853,34194,17657,44762,30963,44768,44878,44745,36472,44884,44674,28530,18719,44894,44870,45346,24411,19078,45051,5259,44669)
Unknown column 'np.person' in 'where clause'