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 (24411,17657,9341,18301,45286,44531,44861,18185,18042,44865,17492,34194,18427,44837,44762,44764,45517,45042,44775,18794,39676,37057,18650,44640,44878,17278,13425,44868,6782,17351,5259,17335,44765,44855,24438,17904,36472,17092,44854,13988,14402,44856,43800,17703,31354,17981,45561,18572,30135,19078,45515,18279,44711,44845,13922,14622,18237,44884,45346,45567,32454,45177,44853,17839,45518,17114,44848,45072,30963,17527)
Unknown column 'np.person' in 'where clause'