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 (30963,44687,6862,17756,18353,44858,18430,18981,14622,44894,44845,17556,17601,17335,6609,18894,18719,45177,28313,44767,44861,17278,17848,18301,8753,45518,39676,44869,19078,6875,17703,17839,44835,18688,18652,45072,18648,10402,34194,45516,16885,13425,5993,24411,17237,45421,44868,24441,18042,45262,44669,31354,9341,44856,17657,45277,44745,44865,19057,37267,17771,17527,18650,28530,18794,18572,44884,44640,37057,44674)
Unknown column 'np.person' in 'where clause'