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,44739,44865,17009,44884,18996,17835,44767,17755,18894,17335,17114,44765,44845,4765,13922,17527,44853,17556,31354,45042,19078,17492,44855,45518,44775,44848,34194,24441,17904,8753,45051,44878,44861,44711,18430,44640,13,45072,6875,17981,14402,44671,17771,5259,44764,44875,44745,17278,45286,44674,17237,18427,17839,44531,45567,44867,18279,44866,44849,36472,17703,19057,45043,18572,45177,17601,45421,17351,16935)
Unknown column 'np.person' in 'where clause'