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 (45421,30986,44869,17839,44858,13425,45262,18301,17904,45517,17351,44894,18894,24411,44685,44865,14402,44848,45180,17335,44762,44671,32454,44870,5410,3,5259,22509,44845,16935,44835,44775,43800,45043,45561,36472,44884,18172,37057,45518,13988,45515,44849,44766,18652,44873,45277,17278,44768,44854,17848,24412,17755,17601,17657,45567,19078,18719,45346,17981,17703,18794,18427,18042,16885,44764,28313,3883,5993,13)
Unknown column 'np.person' in 'where clause'