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 (44848,14402,17848,17237,45042,44689,30963,44867,45277,44745,18301,17009,45051,24411,18286,45517,28530,17835,10402,18430,44835,32454,37267,44845,13988,18981,44854,18042,44674,31354,45516,44865,44849,44878,18185,44768,17092,44739,44765,28313,45072,18794,45286,18172,18237,44767,44671,44853,45518,24412,44531,45262,44837,17278,18353,17657,16885,30986,34194,45180,6862,6782,6609,18572,44766,44775,45177,8753,45346,37057)
Unknown column 'np.person' in 'where clause'