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 (17556,16885,44855,44711,5259,6609,30963,45561,3,44671,17092,45262,22509,45515,17904,6875,18185,17703,45072,44884,4765,44767,44858,45043,43800,9341,32454,17771,36472,45177,14402,44739,18572,44685,17335,24411,44835,17835,45516,44687,44764,45229,24438,45346,18719,13425,44745,44856,6782,18353,17009,18996,44845,44766,17981,5388,19057,44865,24441,17839,44863,44894,13,45286,6862,45421,5993,17756,31354,44775)
Unknown column 'np.person' in 'where clause'