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 (28530,30986,30135,18688,44762,34194,44848,9341,45229,44669,45346,17771,44765,17009,18301,44640,45421,18172,3,39676,44837,5259,17601,6862,18353,44766,22509,44875,19057,17114,44689,45262,44836,13,44869,17351,18981,18042,44855,36472,3883,17981,45051,44856,45561,31354,13425,5410,28313,44767,44768,17703,45567,18279,14402,45286,45072,8753,44867,18286,44861,17527,44764,5993,13988,4765,44858,44531,18719,45518)
Unknown column 'np.person' in 'where clause'