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 (17092,44745,44849,18572,37057,30986,4765,28530,44861,17848,16935,34194,6862,17703,45286,44856,45180,44863,17839,17755,17527,3,45177,44869,18688,45515,28313,44764,37267,17335,18286,44884,24438,44853,43800,45262,8753,18301,44767,5410,18237,44671,17756,17981,13,44858,44762,44835,17556,44669,17657,44866,30135,5259,30963,44865,18279,44775,45567,17771,44870,44837,45229,45518,18185,44845,17351,17009,32454,6782)
Unknown column 'np.person' in 'where clause'