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 (6875,44531,17009,44745,28530,17756,44766,44669,17839,3,45043,18996,44878,44875,44867,44775,36472,10402,14402,6609,45515,19078,14622,13425,45051,44671,44764,44689,24411,39676,43800,30963,28313,44870,45286,18900,44845,45516,18894,44863,18286,17335,13922,18648,44865,45421,44866,18650,18688,45518,18719,22509,16885,18430,44767,44851,44894,44869,34194,18237,45072,17351,24441,17771,17981,37057,31354,17527,30986,44765)
Unknown column 'np.person' in 'where clause'