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,44867,45043,44775,45262,17492,45567,30963,44845,44767,44764,17703,28313,18894,44671,44531,39676,18650,9341,45516,44884,24441,18981,18794,4686,44640,18652,18353,5259,17904,17756,28530,16935,13922,6875,45177,45277,17835,5410,4765,13988,8753,14402,44878,18996,45517,44768,44853,44855,10402,44689,18172,17657,30986,17556,44711,44875,44873,32454,45286,17527,44837,14622,13425,17114,18286,44870,44836,24412,18900)
Unknown column 'np.person' in 'where clause'