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 (17009,44531,44870,37267,45421,44711,44845,17114,44851,10402,30986,44863,44745,5259,44687,45517,45177,22509,17601,39676,13922,44855,44767,44775,18185,17237,45051,18301,17703,24441,44861,44853,43800,44867,45042,18650,45518,45180,17848,44866,44856,13988,44869,28313,44858,44835,24411,44873,18996,45346,44768,30963,44739,13425,5993,44868,14402,18353,19078,45262,17278,9341,24412,44848,17351,44764,44669,18042,16885,44762)
Unknown column 'np.person' in 'where clause'