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 (28313,44858,44836,17835,17756,10402,13922,18981,45229,17981,44767,31354,45561,6862,45517,44873,44745,18794,13425,18446,45277,18286,44863,44845,17492,18996,45518,19057,44739,32454,19078,44878,44894,18185,44866,44711,45262,45286,24441,5410,45177,17351,8753,18652,4765,17848,44856,45043,3,18427,18894,44640,18301,18650,44762,44689,44531,44875,44835,16885,6609,18279,18688,45567,22509,44685,44851,17278,17755,45421)
Unknown column 'np.person' in 'where clause'