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 (44762,18719,44868,18430,14622,5993,18042,17848,8753,17835,44775,18650,17755,24438,45262,45517,44870,31354,44685,22509,44837,44894,44640,6609,32454,17756,44674,17114,30986,18981,18353,44854,30963,18688,3,4686,17335,17092,43800,44863,44861,3883,44848,45518,45561,9341,44835,6862,16885,13922,44768,18279,18648,17492,45567,24441,16935,44845,44767,44711,44875,17981,30135,18185,44671,4765,44867,44858,6782,18794)
Unknown column 'np.person' in 'where clause'