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 (44865,18900,45072,18996,17009,24411,5259,17755,31354,36472,17092,44875,45346,44849,17601,39676,18279,18981,17657,30135,45516,44878,37057,44764,44851,28530,13988,18353,13,19078,44775,45286,6875,44848,18794,44884,44762,44837,17278,6782,44669,44745,18237,13425,43800,14622,18185,45051,44866,44845,45567,45515,45229,17904,18301,18042,45177,19057,44861,18650,17114,44835,10402,34194,45277,44863,18719,6609,17335,18446)
Unknown column 'np.person' in 'where clause'