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 (18427,5388,4765,44849,24438,45042,44766,44837,18894,22509,44878,18446,17657,44640,17703,45043,44866,6862,24411,45421,14622,30986,44775,44868,18900,44689,18185,44768,28530,18996,45277,5993,6782,44836,17756,17981,44863,16885,17601,44764,44745,32454,44867,34194,44858,44671,24412,18572,18301,4686,17835,45286,45516,44711,44861,18279,44855,44884,45180,14402,44853,18650,45346,17904,44851,45515,45567,44894,17492,17848)
Unknown column 'np.person' in 'where clause'