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 (24438,30135,17904,45421,17114,17278,44858,18172,17335,18652,44766,44878,44848,18894,17601,5388,10402,17657,45561,28313,44531,44767,5993,44689,44745,9341,45177,18981,18185,45072,45518,37057,44775,45051,18900,17756,44865,18237,44868,24412,44674,18648,6875,44856,28530,5259,24441,18286,45042,45517,17981,44875,16935,18353,4765,44870,17848,18572,17771,44640,18996,6862,44835,44739,45515,45262,18650,44845,44849,30986)
Unknown column 'np.person' in 'where clause'