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 (18237,17527,17703,18430,18900,10402,44875,9341,4765,44854,39676,44689,44739,45180,45561,4686,37267,19057,44711,44865,45515,44768,17771,18427,44856,18572,45043,30963,17657,44531,44685,18981,44853,17009,28313,44848,44745,18719,18172,17755,24411,17492,44764,45518,17601,44674,44845,44687,44868,45516,44835,44837,45277,31354,17835,44863,44869,13988,17904,6782,45229,13425,18446,17114,6862,18996,18279,18042,45042,44867)
Unknown column 'np.person' in 'where clause'