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 (45515,44767,18430,45177,30135,18042,45277,44851,44894,18652,18353,6782,45042,18719,45043,39676,44873,44764,44745,44766,30963,5259,4765,44869,6875,44853,17278,44861,8753,17092,18286,30986,17771,37267,44848,44669,43800,13,22509,19078,5388,5993,44836,45051,18572,44640,24411,44884,24441,17839,17237,24438,44870,44835,44856,18172,17904,3883,18900,44863,44865,44768,10402,44837,44845,13425,37057,28313,18279,44854)
Unknown column 'np.person' in 'where clause'