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 (45515,44867,17848,44853,18172,45277,28530,44687,17835,18648,18572,17114,17009,45177,30135,5388,45567,30986,18042,44855,45072,8753,4686,16935,44745,44870,44851,18894,45043,18719,24411,44868,18430,44671,44685,30963,31354,44711,17492,44837,36472,44873,44875,45518,44845,44765,44762,3,44739,28313,17092,16885,45346,4765,6862,24441,34194,17351,44848,37057,44861,44768,44849,13988,43800,37267,3883,18688,44640,44767)
Unknown column 'np.person' in 'where clause'