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 (24441,6782,44853,17556,45518,44764,6862,45286,18353,17601,45180,44669,44640,44867,44767,17527,17904,45346,24438,4765,17755,44861,18185,17351,45561,44866,18237,6875,14622,6609,45177,44531,24412,44835,17092,5410,44689,45421,44674,44863,44875,17771,31354,17981,28530,18042,13,44671,36472,3,45277,44685,45042,17009,44894,5259,44768,14402,18427,45515,17657,44745,28313,17848,18652,13425,39676,30963,44884,18279)
Unknown column 'np.person' in 'where clause'