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 (43800,18648,44745,44685,24412,30135,32454,6862,45262,17278,45277,44855,44865,44873,44851,45516,44869,17904,17009,44849,17657,13,31354,17771,10402,44764,3883,16935,17756,44669,44868,30963,44884,17703,44739,45346,17755,44531,18279,44775,14402,17839,5993,17848,44836,17335,6609,24438,18981,18446,44674,13988,18650,44894,44854,17981,18794,44878,44856,45517,8753,18172,44866,18900,44768,45229,6875,17237,18301,44837)
Unknown column 'np.person' in 'where clause'