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 (37057,44767,44765,44884,19057,44873,17904,13,44855,45518,44531,37267,16885,17278,6862,30986,44837,5259,4686,24411,18652,45043,17756,44845,44878,45516,13922,17839,45517,6609,45567,44861,19078,45561,18894,44766,17755,30963,17981,18042,18237,13988,5410,30135,44764,17556,44685,44856,39676,45515,45346,18172,3883,5388,44869,17835,18446,17492,44854,45072,45262,14622,45042,10402,18648,24412,18650,44836,17114,28530)
Unknown column 'np.person' in 'where clause'