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 (44875,44764,44863,30963,5993,5259,19057,19078,28313,34194,17657,4686,4765,45516,44845,44873,17848,24438,17278,17835,45051,45517,16885,44894,44674,22509,44853,44851,45567,6875,18172,30135,9341,45518,37057,18446,45177,44868,44865,17556,44689,44867,44849,17839,44767,44835,13425,5410,44775,18996,24411,18719,18572,44739,13988,18794,44869,44866,44878,10402,45180,45515,18427,44854,18301,45229,5388,44531,17756,18894)
Unknown column 'np.person' in 'where clause'