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 (6862,17351,17756,44531,17848,44685,18353,45286,39676,44870,6875,3,44764,32454,19057,24412,14402,45561,44711,45567,30986,10402,17009,44884,18172,44894,45517,18650,44869,45277,17278,44875,3883,44765,18446,9341,44835,44837,45051,30135,18648,44863,44878,24438,17904,8753,14622,45421,44745,24411,16885,18572,17527,45346,18427,44865,31354,44856,44845,36472,28530,17556,17092,44739,44867,18185,18900,44853,44849,4765)
Unknown column 'np.person' in 'where clause'