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 (18981,17703,4686,44853,45262,44875,44671,44848,45051,18430,44851,45072,18719,45346,17556,44762,32454,44764,17009,17839,18894,18185,17981,6875,5259,28530,17771,18353,44766,28313,18652,30135,19078,44640,44836,4765,17755,6862,18688,17657,22509,44894,45515,18996,8753,44765,18286,18794,13,44867,17092,30963,18572,17278,44531,18301,44878,17351,24441,13425,44775,44745,18042,18650,18237,16935,17237,45042,44869,17835)
Unknown column 'np.person' in 'where clause'