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 (24412,16885,18172,18572,18794,36472,17237,44687,44867,43800,17527,13988,44884,10402,44767,18650,6782,44866,17657,45180,17278,30135,44711,45042,44858,18894,44766,18900,5259,18286,17835,44853,4686,44861,24441,28313,17601,17556,45421,17771,45043,44848,30963,44869,39676,18185,28530,18301,44845,44836,44745,17114,44531,5993,18648,30986,24411,44856,19078,18279,17492,44739,3,5410,13425,44768,8753,44671,45517,6609)
Unknown column 'np.person' in 'where clause'