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 (30986,22509,6862,18430,32454,17114,44873,5993,17756,5388,44745,44775,13425,5410,44863,45277,5259,13988,44875,44878,45229,44669,44836,18981,14622,28313,17771,17839,17904,45043,14402,24412,18652,44764,45177,44765,45421,45042,18794,18353,17527,18648,44671,44689,44687,13,44853,18286,45286,31354,44767,39676,44869,44851,13922,44837,45346,16935,44884,30135,17703,24441,8753,17556,17278,17601,19057,44856,37057,18237)
Unknown column 'np.person' in 'where clause'