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 (18446,22509,44865,44858,17278,28530,45346,44669,10402,44873,18794,17657,43800,18286,18650,17756,44853,37057,44875,18172,4765,5259,18237,18981,18185,17904,6609,32454,13988,44739,17114,44685,45567,44687,17237,14402,17335,18652,16885,44836,18353,9341,39676,44849,17981,18894,8753,16935,44868,18648,44869,18719,45517,18900,45518,18279,13425,6782,24441,45043,30986,5993,44894,44640,44845,44674,17703,45051,44884,44745)
Unknown column 'np.person' in 'where clause'