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 (44836,44711,45177,19078,17335,17556,6862,45561,37267,45515,17351,44868,45346,18981,32454,17835,31354,18286,13922,45421,44687,18894,17981,44671,18301,13,17492,5993,44869,17527,44674,44849,44856,4765,44745,44851,44764,17114,45051,24411,44768,44689,18237,44767,24438,34194,17756,44853,44861,18648,30135,18185,16885,17237,13425,3883,44531,44775,44766,18446,18996,17755,9341,44765,44875,17009,44865,17278,17771,18427)
Unknown column 'np.person' in 'where clause'