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 (45043,5388,17703,13922,44858,18900,43800,44640,6782,44849,22509,18652,13425,45286,28313,24412,13,44687,18572,44856,17601,44775,18185,19057,17492,14622,17904,17981,18353,3,17755,18648,30135,37057,44863,24411,10402,44853,5259,18427,3883,44869,45567,39676,44836,16935,17839,6609,44854,44845,44711,44671,17835,18688,17351,17335,45042,45516,5410,6862,17114,18719,45421,44868,44765,30963,44685,16885,17848,44762)
Unknown column 'np.person' in 'where clause'