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 (45346,17601,44870,44878,44739,17657,44848,44856,17835,18286,44866,44851,44894,44836,18688,37057,24412,8753,45277,44835,44764,30135,45051,14402,17981,3883,5410,18430,30986,5259,44765,45072,6782,44671,24438,18353,3,44837,6862,18894,45043,17278,36472,13425,17839,17848,5388,18719,17351,18042,17009,44884,10402,32454,17527,19078,44745,45180,17492,17904,44685,17756,18652,45042,30963,18794,44531,16935,22509,18427)
Unknown column 'np.person' in 'where clause'