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 (10402,17601,44854,44866,18688,44671,45346,44687,17556,5993,45515,44870,44878,6875,17278,24412,18279,44775,16935,18286,18237,45561,17756,45229,44861,44711,13922,18648,44669,6609,44685,45516,45518,30135,45517,44674,37057,5410,17904,45042,44768,44884,6862,18042,17092,9341,45421,45180,32454,44894,44745,17527,19057,18301,8753,18185,44762,6782,44858,30963,22509,44873,44531,24441,13,18996,39676,44767,18652,17237)
Unknown column 'np.person' in 'where clause'