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 (17756,44873,28313,44674,16885,19078,17009,18652,45180,14402,44858,45051,19057,13988,18279,44884,44868,30135,37267,18981,44894,44861,6875,18688,45072,18650,24411,31354,32454,18185,45346,44878,6609,18430,45042,5259,44836,17335,24438,16935,17601,45517,45177,45561,9341,18172,17835,5410,17657,18446,18286,18042,44835,45518,44687,44869,18719,44863,44856,44867,13425,45229,18572,13,17771,44865,30986,44531,44689,17848)
Unknown column 'np.person' in 'where clause'