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 (19057,32454,17527,18353,44685,44669,44766,45177,44835,17981,18652,45516,14622,45180,17492,18430,5993,44689,44745,6609,44855,17601,24411,45518,44848,44762,14402,44767,17839,44849,17904,44775,8753,45229,45042,44865,44878,18648,4765,5388,45277,10402,45517,45043,22509,44845,44868,44768,6782,44671,19078,24441,18900,37057,16885,17848,30986,44837,44765,44851,44858,18286,45515,45286,13988,17835,28530,44869,17114,18572)
Unknown column 'np.person' in 'where clause'