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 (18900,17009,44685,45277,44854,45515,6862,19057,30986,44856,18648,44767,44875,17755,44711,5388,18572,44745,18185,17335,18650,18652,44762,18981,28530,28313,45229,44851,18301,44669,14622,44858,44865,18688,34194,45177,8753,17278,4765,44873,44884,45518,44775,5993,16885,44739,3883,44835,45051,18996,44868,44531,39676,44764,24411,44836,45567,45072,44869,45561,16935,45516,18894,17839,17771,44845,5410,45043,44861,14402)
Unknown column 'np.person' in 'where clause'