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 (45515,30986,17335,28530,17755,17839,9341,14622,45229,18650,45262,44640,6782,6609,30963,31354,44865,44767,45516,44855,18652,45561,44711,6875,24438,18794,45072,18900,32454,44854,24441,17009,18185,13,45043,18894,18172,22509,17114,18237,16935,36472,44762,4765,44866,17904,5993,44853,4686,44870,44858,8753,45346,44836,44685,44873,18648,6862,44775,17657,24412,44845,17601,18446,30135,5259,44739,17981,13425,39676)
Unknown column 'np.person' in 'where clause'