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 (22509,44875,44775,13922,45516,18572,16885,44531,17839,17492,45346,44866,17657,44845,44894,18652,44762,5259,44854,44869,44884,24438,45286,5410,10402,45515,45517,16935,44689,18996,30135,18794,17092,18446,17527,45229,18427,17556,18650,44640,17848,31354,6875,17771,44685,44745,18301,17237,44856,17278,44849,24441,44765,44711,45043,18900,44764,18719,28313,17009,44837,30986,45421,4686,44867,44669,44865,18286,18279,13425)
Unknown column 'np.person' in 'where clause'