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 (45517,44531,6609,45277,44766,14622,36472,44894,45561,18301,17601,44689,17771,17657,18894,45072,17755,24441,44674,18648,17114,44861,18237,13922,45043,44865,18427,13425,5410,45515,18719,44775,45051,45421,37057,3,44764,9341,44767,32454,18286,44848,18279,39676,44875,17981,17904,18430,17351,13,30135,44867,24412,3883,34194,44868,44855,6862,44854,44870,44640,17527,19057,17335,24438,16935,8753,44671,18652,44878)
Unknown column 'np.person' in 'where clause'