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 (19057,45051,44745,17771,18427,44851,45516,45043,45517,18301,44861,32454,17756,4765,17839,44845,18279,17092,17981,17351,44836,18185,45177,44866,18446,45286,17703,28313,16935,18894,6609,44835,44878,18652,18650,18286,22509,44687,45262,44867,18572,31354,5410,3,44854,24441,43800,17527,44640,45277,44669,24411,13922,17009,45518,37057,5993,5388,45346,44768,14622,18042,44766,17904,44837,14402,44858,44531,45229,18688)
Unknown column 'np.person' in 'where clause'