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 (6875,3883,10402,44870,18572,18446,45518,18900,13,45421,39676,4686,44685,44856,44739,17981,45180,44775,44867,45515,37057,44858,44767,18794,14622,45346,17756,44865,45516,18353,30135,44884,17492,45561,30963,44835,6782,13425,4765,19078,18648,28530,18430,17278,45072,17556,32454,24441,18042,18279,17601,44674,24438,18719,45262,44869,24411,18172,45517,44848,45277,18894,31354,17527,17114,5259,17848,18301,43800,44894)
Unknown column 'np.person' in 'where clause'