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 (44848,17657,6875,44640,44671,44531,44865,44866,44765,17755,18652,43800,17556,45518,44711,18237,17835,44875,30986,18446,28313,5993,18900,6609,22509,17904,17601,44835,18185,44766,44674,44837,45042,16935,44739,45051,45043,44764,14402,45229,5259,44861,44868,6782,18981,44884,45072,17335,13425,8753,4765,28530,45421,24411,44854,44853,18572,19057,18996,44856,36472,44867,44858,24412,3,44878,16885,32454,18353,44762)
Unknown column 'np.person' in 'where clause'