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 (17848,44873,45229,44762,17092,9341,44745,44765,44867,45515,13425,44854,45421,30963,16935,10402,6609,44851,6875,17492,44531,45072,44687,22509,44689,6862,44848,44856,19078,4686,44849,44640,24412,44764,17756,18185,18648,39676,45346,5388,16885,24411,17981,45177,24441,45517,17278,18237,18172,44884,17601,30135,37057,44858,18042,32454,44855,44878,45286,17755,44875,30986,45518,13,44863,45051,18430,44861,17556,18688)
Unknown column 'np.person' in 'where clause'