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 (44687,44836,18719,17839,4686,18427,18650,44878,24441,37057,18301,18430,45072,44669,18237,28530,18981,45051,44875,28313,31354,24438,44711,17601,3883,44531,45286,18900,18286,18894,18279,39676,13,18996,44873,30986,13922,44764,44837,18794,44767,5259,44866,18185,36472,16935,45561,4765,24411,18648,44861,44739,13988,5410,9341,44766,5993,18353,18042,44865,45262,30135,44884,17771,44854,14622,44765,45516,17657,44855)
Unknown column 'np.person' in 'where clause'