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 (17771,18900,18301,6862,44739,13,17657,44858,44867,17556,44689,34194,17114,44878,45561,44775,3,18042,18286,18572,45043,44849,44531,18794,44866,5259,18185,17904,44765,24411,14402,19057,32454,45515,44855,45229,22509,30986,44711,18353,45346,17839,18279,44854,28530,4765,6609,17009,5993,17835,45567,44768,44687,18172,44764,44894,45421,24441,45072,45051,44853,44767,28313,16885,13425,45516,44875,17527,14622,13922)
Unknown column 'np.person' in 'where clause'