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 (17092,45567,44767,44687,44878,18237,18719,44856,45180,24438,5410,45515,44858,17771,44870,44845,18042,44851,17009,24411,37057,17835,45262,17981,18446,44884,43800,44711,17755,37267,18900,44894,44863,45517,39676,16935,45043,18279,24412,13988,4686,44745,6862,45518,44689,4765,18652,45042,17756,24441,18650,45286,44531,34194,44674,44855,44849,18430,13425,6609,44685,44854,14622,18894,36472,19057,18353,45177,17278,17556)
Unknown column 'np.person' in 'where clause'