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 (45051,17351,45518,44861,45516,44869,44689,44745,45229,44856,44766,44884,18042,32454,44775,45072,44868,45346,22509,44835,17839,45180,30963,17848,18794,28313,19057,10402,44640,44851,18652,17981,45286,31354,44870,17335,44854,44669,45262,18894,45515,17114,17771,6782,28530,44674,45177,14402,16885,44878,18353,14622,18286,30986,18237,17009,6862,37057,44863,44855,24438,18900,44768,17556,44875,44849,17835,45517,44685,18427)
Unknown column 'np.person' in 'where clause'