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 (44669,44835,18185,45180,18353,18794,13425,44894,17755,44739,44674,44671,18894,45043,17092,18042,17756,18688,17492,44856,18279,4765,24412,45229,44766,44775,17703,18427,6782,3,44851,17771,16935,6609,45567,9341,13988,44884,17839,22509,45177,45072,17335,5259,17556,28313,17351,44853,45262,18446,45518,44764,17904,44762,44745,19057,31354,45286,34194,44836,18996,44855,19078,37057,24411,5388,30135,45515,17835,44837)
Unknown column 'np.person' in 'where clause'