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 (45277,44766,44858,17835,6862,5410,44765,44775,30963,34194,18996,44835,44845,17848,30986,45262,5259,44855,44869,30135,18794,18430,16935,17278,18042,17703,17981,18279,6875,18446,44762,44671,44685,19078,18185,24441,44674,18237,17351,24411,6609,44531,18301,18172,44848,28530,45043,45518,18981,45517,45229,44768,18719,5388,13,44856,17556,44853,18286,17335,17114,14622,45051,44861,16885,8753,17771,45180,17904,44767)
Unknown column 'np.person' in 'where clause'