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 (18719,45051,44853,6782,18688,5993,44849,17756,18185,45567,44870,5388,17904,22509,37057,45277,45286,9341,44669,17114,44856,17492,44835,44711,44868,18430,18894,44531,44875,44861,44764,44671,17009,30986,17755,44685,28313,44866,19078,24438,18650,4686,17657,44878,44894,44873,17527,44689,45229,24441,17351,44640,13988,44775,44855,17835,18648,18353,24411,43800,18301,17839,30135,18981,16935,18572,45516,44767,44884,18279)
Unknown column 'np.person' in 'where clause'