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 (3883,45043,36472,18996,18237,18900,44865,44854,44764,14402,43800,30986,17009,44853,44775,18430,44762,4765,37267,17755,18301,30135,5388,18279,24441,45262,45229,3,17981,30963,44875,44873,17527,45567,44674,44836,44767,44669,44739,13922,17278,44531,31354,18572,45180,6609,17771,44640,24412,44849,28530,44856,22509,13988,6782,5993,44687,39676,18172,18650,18688,45072,45516,5259,17114,44870,17848,44766,37057,34194)
Unknown column 'np.person' in 'where clause'