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,44866,14402,43800,44894,44875,45518,6609,44878,18794,44685,18446,17657,18688,24438,45177,44669,17351,18981,44861,44765,6875,45286,44674,45567,44855,44835,45043,17904,44671,19078,13922,34194,18648,17335,44531,45517,17756,8753,45262,45051,45561,22509,17114,30963,18430,44689,18279,5410,44745,45346,18042,18172,17556,17492,44836,17835,18353,18652,44837,31354,18237,44687,30135,45515,30986,5993,45180,44775,17755)
Unknown column 'np.person' in 'where clause'