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 (45072,18794,17009,45346,44865,17492,6875,17335,44848,44762,37057,44884,43800,17835,6782,45277,16935,14402,18279,28530,44875,17756,17601,44640,14622,18430,45286,24441,44853,44765,18185,44873,17278,44745,45177,31354,17351,45042,44856,44858,22509,9341,16885,44870,17848,13,45229,17839,44767,44835,44866,45262,17657,17114,19057,4686,13988,18996,6862,45043,44863,45051,17703,18301,44531,17092,44764,44854,17556,17981)
Unknown column 'np.person' in 'where clause'