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 (6782,17237,45421,6875,31354,17703,13922,44878,14622,44775,4686,24412,45043,44764,18427,44858,13,44853,44689,44863,16935,44745,9341,45561,44849,45518,45515,18172,22509,24441,17771,30963,45567,44856,17981,44711,45229,30986,18894,13425,18650,44640,34194,44894,45042,18572,30135,6609,17839,44848,17009,10402,16885,17601,17657,18446,17278,18286,44687,39676,18042,19078,44674,19057,45516,44765,44867,18648,44869,17527)
Unknown column 'np.person' in 'where clause'