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 (45051,16885,44863,45262,44640,24441,44685,44674,44853,17756,18894,44869,44745,18652,44856,44854,44766,44868,17755,45277,44768,37267,17703,44767,9341,44762,24412,44867,17835,18981,44836,5993,3,44849,44845,34194,18650,18430,18900,45515,18237,17556,43800,13425,44775,4686,44884,30986,18286,17848,31354,24438,32454,44875,18648,18427,6782,45567,44848,13,44851,17278,45561,18572,24411,19057,45042,14622,44711,45229)
Unknown column 'np.person' in 'where clause'