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 (18894,45072,17092,16935,44870,43800,44765,18650,45286,44861,44687,19057,44775,6862,3,31354,44711,30963,13922,44866,17756,44671,17114,24411,45229,44848,10402,18794,45567,45561,44853,17904,44865,8753,44869,44764,18446,44640,22509,44669,34194,45043,4765,45346,17771,18185,5259,45051,44856,18981,45042,44837,17981,39676,9341,44766,18042,44867,45177,18301,44762,17556,13,17278,44858,37267,14622,44884,44863,24438)
Unknown column 'np.person' in 'where clause'