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 (14402,45051,18996,36472,43800,45072,17335,45286,13988,24411,13922,13,44863,45518,44868,18719,17556,44849,13425,17278,17703,28313,5410,17771,44762,44853,8753,17755,18648,44865,44764,44689,18301,44711,44856,24438,17351,18652,44768,45516,45517,6782,17114,5259,44767,44894,44835,17904,44855,16885,17092,18185,45567,44836,44669,44739,44671,16935,18794,17835,44531,24412,6875,45262,18353,45177,39676,17237,24441,44765)
Unknown column 'np.person' in 'where clause'