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 (45051,17703,6609,18042,24441,4765,45516,6862,18572,17755,18894,18279,44669,18794,28530,44868,37267,17527,43800,45277,44640,45515,45043,18237,16885,45072,44878,44671,34194,22509,44837,44767,17839,44711,44845,24438,18648,14402,44835,17278,44851,44687,44849,18430,45286,10402,45180,31354,44531,44858,44745,44856,6875,45567,44765,17771,18446,18719,17492,18427,44764,18996,45229,5410,19057,5259,44854,44861,24411,45518)
Unknown column 'np.person' in 'where clause'