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 (45346,17835,44762,17556,18688,5993,13425,44768,44855,17009,44853,45517,31354,44835,28313,18353,17492,45043,37267,13,45177,44687,44848,17981,17278,44689,4765,5388,17237,17527,18301,18719,45229,44865,24411,6875,17351,45518,5410,16885,18652,44849,39676,45180,17657,45042,45561,6609,44671,14402,36472,44669,30986,30135,18996,18237,18185,16935,44739,44745,18042,44868,44765,44775,44854,43800,22509,44867,18427,44873)
Unknown column 'np.person' in 'where clause'