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 (22509,18981,18900,44775,8753,17703,13,5259,16885,9341,18286,4765,17835,32454,17556,24438,43800,18719,30986,17601,24412,13988,14402,4686,44685,44875,45262,18172,6609,44867,24411,44836,28313,44766,44849,18185,44745,44687,44863,17981,44858,37057,18650,44865,44854,44853,45517,36472,44671,45042,13922,44669,18301,3,6875,18427,44762,17839,18894,17848,45051,45043,44868,18996,31354,30135,44837,44711,18652,44884)
Unknown column 'np.person' in 'where clause'