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 (45515,18427,9341,44775,17848,44856,17114,17904,44849,14622,19057,17601,19078,44764,45561,16885,45042,30986,44685,17771,45346,4686,45229,18688,44854,45043,24438,18301,45421,37267,5993,44868,30135,44767,44855,18446,17351,18650,5259,44875,6875,17492,18172,24411,17527,32454,44878,45180,37057,31354,44762,44870,18353,44640,6782,18981,14402,8753,44861,44863,13922,44766,3883,44869,17237,18572,44711,18648,36472,43800)
Unknown column 'np.person' in 'where clause'