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 (18301,44873,44853,17278,18286,5993,8753,18688,45180,31354,45515,28313,17527,18652,30135,17351,18446,44878,44685,13922,13,18719,45421,10402,17981,17335,45043,14622,6782,17092,44835,18185,44640,44851,45177,45567,19057,24412,6875,44865,45051,6862,37057,4686,18572,5388,19078,13425,44837,44766,30986,18353,16935,32454,44894,45517,44739,44767,44854,44870,45262,44845,4765,44768,17755,17756,45561,45042,30963,45286)
Unknown column 'np.person' in 'where clause'