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 (30963,24441,44775,45042,44845,3883,44739,44873,18279,30135,44858,45277,44855,45561,19057,44531,45516,17278,13,44689,34194,17335,5993,44674,45262,18301,24411,44856,16885,3,44866,44894,44766,37267,44868,24438,45515,44765,5410,45286,18427,44762,44768,17904,31354,17755,44837,37057,45421,44854,18652,45517,17527,44851,45072,17703,44848,18172,45180,45567,24412,13922,44869,17009,28313,13988,17114,18981,39676,18353)
Unknown column 'np.person' in 'where clause'