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 (44669,44765,13425,45262,44853,44858,34194,28313,45518,18427,45072,18279,44764,44835,44894,17835,44685,18900,44873,5410,17237,5259,44851,10402,44762,17904,18430,13,45177,44863,18353,45229,18237,24441,17601,44640,18172,36472,30135,18996,44878,44674,17839,18286,30986,45346,5388,18688,17556,44884,6782,44866,44849,6875,39676,18981,45051,17755,45515,17657,19078,17278,9341,28530,44775,31354,13922,13988,45421,17703)
Unknown column 'np.person' in 'where clause'