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 (17351,18719,17981,16885,44685,8753,45517,18446,44765,45277,17278,17527,44869,45042,45072,44849,44775,17771,3883,34194,14622,37057,18279,18996,45515,13425,44894,44671,18900,37267,6875,44848,44868,18427,44669,32454,44640,10402,30963,18981,45262,44835,44873,30135,44866,44870,17904,44739,45516,45180,19057,4765,17848,44855,17703,44854,44762,17657,45567,28530,18894,18430,30986,17756,31354,44711,44674,44689,44858,45518)
Unknown column 'np.person' in 'where clause'