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 (18042,17237,44764,45229,17092,10402,44671,17848,45262,18237,44884,44674,18894,44894,45051,45043,14622,18430,16935,6609,18652,18981,44765,44865,44858,34194,44875,9341,45042,13988,19078,18172,44854,44848,18648,44856,19057,44745,44878,3,18446,17601,45567,24438,44687,22509,44851,17835,16885,28313,18353,45277,44768,17351,18900,14402,17839,44775,18572,31354,24441,17556,17009,45421,4765,45515,17278,39676,44837,44853)
Unknown column 'np.person' in 'where clause'