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 (5993,14622,45517,44765,18650,45180,17278,13922,45051,18981,17756,18042,18353,16935,44640,17703,45043,44669,14402,44858,18572,18996,18301,24438,45229,44854,44739,44878,4765,5410,44762,17848,17009,44775,28530,44849,18648,37057,44687,18279,28313,44894,45042,6862,17527,17492,44685,44866,45421,18652,44848,39676,18185,45277,24441,18286,13425,30963,18172,18794,44671,44836,5259,18900,44870,6875,18719,44745,6609,43800)
Unknown column 'np.person' in 'where clause'