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 (45042,9341,5410,44766,18042,45515,14622,44775,44848,17848,45051,30135,44685,18894,17601,45043,17657,45516,18446,4686,44849,44861,44863,13922,44762,18650,44711,14402,3883,45518,6609,24438,44878,5259,17839,16935,30963,18172,18185,17981,44856,16885,44873,44855,17527,45561,17756,18279,44853,17904,17278,45277,18430,19057,18996,45229,17835,18719,24412,18981,44894,44767,18286,17703,44768,31354,44745,43800,17351,45177)
Unknown column 'np.person' in 'where clause'