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,36472,44671,30963,16935,44868,44765,44835,44711,18794,44689,44866,44848,18688,44640,43800,45229,14402,44858,44762,45043,44766,39676,17755,17351,6862,30135,8753,22509,45177,24411,45042,45180,14622,18981,19078,17703,32454,5993,18042,4765,45561,44687,44849,44836,13988,44870,18900,18430,24441,45515,18894,18172,44739,44669,24438,17601,44531,13425,44768,44867,18353,18650,34194,17278,44856,10402,28530,45567,44767)
Unknown column 'np.person' in 'where clause'