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 (45180,24438,44775,18688,44863,45043,18301,6609,17981,17755,44855,6862,17278,16935,45042,45515,18427,44689,30963,16885,18172,18042,44878,28313,44765,44836,18446,17601,13425,44869,17904,45346,34194,5259,44853,17839,18652,44868,5388,17657,4686,43800,18185,18650,44669,44875,44671,44745,13922,10402,17237,18279,44767,44873,44762,24412,30986,44640,9341,44884,17114,19057,28530,18430,18981,32454,45177,6782,18794,5410)
Unknown column 'np.person' in 'where clause'