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 (3883,44768,17657,13988,16885,32454,14622,44851,43800,44775,5993,18353,18719,17114,45346,18286,34194,45517,17771,37057,17527,45518,6782,44849,13,18237,44837,44689,37267,5410,44863,44685,44711,44687,44866,18572,44856,17904,18981,3,44858,17839,17092,44868,28530,24441,45567,45421,4686,18688,5388,17835,17755,17278,28313,45180,44762,30986,19057,13922,4765,44669,18894,8753,44865,22509,18185,30963,45042,45561)
Unknown column 'np.person' in 'where clause'