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 (17904,6875,18688,17839,8753,44775,44837,44868,44848,45262,5410,18172,44745,44878,39676,3,14622,18981,24411,6782,44854,4686,17556,18894,18650,45517,17835,44875,45515,45277,16935,44873,13,44768,45180,18794,17351,18427,3883,18652,45043,44863,30135,44531,13922,44674,45177,30963,45042,18430,44739,18279,18042,32454,17601,37057,17278,19078,22509,44845,44856,44762,17237,17114,18353,6609,24441,44765,24412,13988)
Unknown column 'np.person' in 'where clause'