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 (44868,37057,44775,17114,17351,13425,44858,45042,44669,44764,18427,18981,44856,8753,24411,28530,18688,17755,18172,44867,18719,30986,17839,18648,45180,13922,17601,45346,44762,44531,9341,13,44854,6862,30963,18042,28313,45072,18185,5993,17556,45277,5410,44837,45286,44836,18650,18446,44875,19078,18301,44767,18996,44851,17657,44865,44739,45561,36472,31354,18286,32454,44884,16935,44687,44861,44853,44768,44869,17703)
Unknown column 'np.person' in 'where clause'