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 (44640,18650,44884,30963,44764,16885,37267,16935,18279,44851,6862,4686,44739,45262,10402,45180,30986,45286,17335,24441,18301,31354,18996,45043,44671,44765,18042,5259,44835,18237,5993,44865,8753,18172,44875,17527,45517,17009,44856,19057,44762,24438,3883,18286,44854,43800,44867,6609,44845,44849,22509,17835,17601,18572,13922,39676,44669,24412,18353,17556,34194,45515,37057,18430,24411,18648,17981,44869,18446,45561)
Unknown column 'np.person' in 'where clause'