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 (37267,13988,18981,45286,45561,18572,45262,44739,4686,17601,18353,18648,44865,6782,37057,34194,45042,32454,18719,44775,13425,44766,17335,44669,44868,44671,5259,45346,17755,45180,17278,17848,45421,44848,44873,44855,17904,28530,30986,28313,44531,24441,44837,44689,17492,45229,44674,45072,17981,5388,30963,17114,44863,44685,44851,44870,3,17237,19057,17835,22509,24438,44867,8753,44764,45517,44858,18688,18650,44878)
Unknown column 'np.person' in 'where clause'