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 (18996,44853,44868,44775,44861,10402,30963,44764,44884,45262,39676,13922,24411,22509,13425,44836,18894,45561,17755,18981,17527,18286,45229,17335,19057,45286,24441,44768,30135,45516,18237,36472,18279,44873,45177,45515,18650,44762,17492,44866,5259,45043,44856,17556,18172,44739,44669,44640,44875,16935,4686,18185,17601,44671,18900,31354,6875,44835,24438,9341,6609,44765,45180,3,18301,44687,28313,44689,4765,44855)
Unknown column 'np.person' in 'where clause'