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 (45561,18286,44854,17556,5388,44845,13425,44762,45277,44884,18427,24412,18430,44861,44851,44855,44671,45567,44863,45229,45346,17237,6782,44870,24411,44869,44745,44711,17009,17848,18652,16935,17527,45517,6862,18172,8753,17703,18301,44894,13922,18353,18981,30963,17904,10402,44767,22509,30135,17601,36472,44865,18650,18185,18688,44837,17092,18446,39676,45262,37057,45180,4765,16885,44848,17835,18894,24438,17839,9341)
Unknown column 'np.person' in 'where clause'