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 (17981,44835,44858,43800,17848,17756,45567,17835,18648,44861,44764,19057,44868,44765,5388,44870,45421,28313,4765,17601,44853,18900,44873,6862,44866,45042,44689,16935,45043,45072,13425,44766,44674,17527,18688,6782,24438,36472,39676,13922,18650,18572,34194,17904,45262,18286,18301,17492,17771,4686,44884,44855,44875,44894,45515,17351,18042,45516,18996,44768,44878,30963,17009,44775,44745,18430,22509,44671,17335,16885)
Unknown column 'np.person' in 'where clause'