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 (36472,45042,45517,44687,44836,28313,17556,45051,18172,10402,17601,13922,45072,18427,18650,45180,32454,44775,17657,37057,44856,45286,44854,18996,44878,45567,44849,17904,43800,44765,44848,5388,28530,44767,37267,44766,18794,6782,18042,17755,18719,34194,18185,24441,5993,5410,17839,44861,31354,44764,24411,44865,17278,6875,17092,44851,17756,13988,17703,13425,44837,30135,19078,18688,18237,45043,17771,17527,44894,44858)
Unknown column 'np.person' in 'where clause'