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 (45517,17092,44687,17527,44531,17703,18353,37057,44764,17492,8753,44745,5993,45262,45277,43800,44861,24411,18894,4765,5259,17009,18279,18286,5410,44867,18572,44884,17335,44894,44854,22509,44873,44855,16935,45051,18996,30135,44768,30963,44762,44853,24441,44685,44671,24438,5388,6862,18042,18172,45229,17848,44775,19078,19057,17556,18981,44878,17755,17904,4686,6609,44765,44640,18794,36472,44851,18652,44849,13)
Unknown column 'np.person' in 'where clause'