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 (44866,18688,17278,45180,9341,8753,17839,18794,44863,17703,5259,18446,45042,17351,44894,17755,44861,44685,44856,14402,45043,45051,45229,17009,44869,44836,18353,17835,17092,37057,44854,16935,24438,14622,24411,44765,45177,45346,45515,45262,44687,18279,13988,34194,44745,22509,45072,4686,18042,45421,44858,18648,18900,44674,24412,44867,28313,6609,45277,16885,44762,44853,18237,17556,17756,44766,5410,18430,44837,18652)
Unknown column 'np.person' in 'where clause'