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 (17848,30135,16935,45286,45516,18900,17657,13988,17092,17278,18688,5410,17755,3,44858,45567,44767,44854,24411,44855,44739,30963,44837,18794,44873,44836,44863,44766,45229,24441,44867,44531,18427,44764,18237,18572,17771,6862,45180,17839,44745,31354,44869,18648,43800,3883,44851,17601,44711,17981,14402,44768,18042,18185,44848,22509,17527,44671,17114,45561,28313,16885,45177,17492,18981,36472,18894,44856,44689,18353)
Unknown column 'np.person' in 'where clause'