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,18652,22509,44711,17755,44878,44869,18286,18185,18427,45421,18719,44861,18446,17335,3,17839,10402,18430,44855,19057,45515,44745,24411,44531,18648,43800,17492,17527,37057,5388,17703,17848,45072,18172,45346,28530,30963,19078,5259,17556,44865,4686,32454,13988,44767,34194,44868,36472,17904,44765,16935,18237,28313,44836,17009,45043,44870,44640,45518,5993,44866,44775,14622,18572,44685,44854,44849,44739,44863)
Unknown column 'np.person' in 'where clause'