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 (17904,44851,44762,24411,18185,44873,18301,45051,22509,17703,45517,45518,18719,5410,30963,18652,44835,36472,32454,16935,18900,45421,44868,45042,44687,17771,45229,17657,44845,44689,45043,13922,19078,44669,24441,18794,6875,44768,44858,43800,44765,17756,18981,18172,44856,6782,18648,44775,24438,17755,3,18279,44767,16885,45277,45286,44894,5259,13,44837,44766,45516,44674,28530,3883,9341,5993,17278,44867,13988)
Unknown column 'np.person' in 'where clause'