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 (17848,44837,45518,44863,44894,44865,19078,17657,36472,30963,44766,28530,44835,18430,45517,45051,44884,9341,18237,17009,16935,44853,45229,37057,44868,45262,45043,44764,18652,24441,5993,28313,13,44869,44878,17755,44858,44739,44711,18648,18688,4765,44855,18719,37267,22509,14622,44768,19057,18446,45286,8753,44861,17114,44689,45346,45177,45516,44856,13988,18650,24412,17981,18894,6875,6782,45561,44873,17278,18185)
Unknown column 'np.person' in 'where clause'