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 (30135,44851,16885,45518,6782,44531,45515,17839,45277,18572,5388,17114,30963,17092,44640,24438,44739,3,13922,17601,37057,13425,18430,14402,45516,17835,44853,45286,18301,18794,22509,18648,18286,34194,44762,45346,18427,5993,39676,18981,5259,45043,18172,44861,18719,5410,17904,36472,3883,16935,8753,44775,45567,45180,44858,45042,13988,44837,6609,44768,6875,44836,44870,44856,44766,18652,44868,17009,44878,18042)
Unknown column 'np.person' in 'where clause'