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 (44775,16885,30135,8753,17351,18353,24412,17335,17114,13922,17835,45346,17848,17657,13425,17527,18286,17556,18172,45515,18900,45072,44531,44878,36472,18430,18301,44685,31354,44762,44837,18650,44873,43800,45051,44856,16935,6875,6782,22509,18185,10402,44894,44884,30986,44687,18996,24438,44869,44854,18794,18042,18652,3,13988,45042,45043,44855,45177,24411,4686,5259,17092,44845,44858,44764,17009,18894,17756,19057)
Unknown column 'np.person' in 'where clause'