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 (44855,45421,13988,44640,28313,18794,17335,34194,44764,44711,17756,37057,18981,13,44868,5259,13922,24438,45072,17556,6609,45042,44869,44894,44849,17657,3,44674,44848,17839,5410,8753,6782,45346,18996,45177,39676,44835,17492,17755,18286,18185,17981,16885,45277,44851,44875,44837,30963,18894,44854,45051,44765,45518,30135,18042,13425,6862,44766,44689,44669,9341,45515,44836,44685,17527,22509,18719,44865,14402)
Unknown column 'np.person' in 'where clause'