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 (18650,18996,17756,18719,13425,44894,44875,44531,45043,44775,6875,45042,13988,45515,44835,45072,45051,44764,17335,44836,13922,44837,44851,18652,44689,8753,39676,6782,6862,4765,30963,17278,17835,5259,45561,45177,44711,18572,28313,17092,45277,44687,44858,18981,44854,17601,17492,18794,17657,44853,18427,18430,24412,44865,17527,17981,45567,17114,18446,44867,30135,44768,3,17771,45517,18042,44866,18279,24438,45516)
Unknown column 'np.person' in 'where clause'