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 (5388,18279,44768,44764,30986,44853,18301,6782,19057,36472,10402,44848,24411,9341,18650,44869,28530,44870,44863,6862,45229,44868,45515,24438,17756,44836,18427,44531,16935,18719,17278,30135,45567,17335,45262,18996,44765,44739,44867,44849,44894,18353,18446,45346,45072,3,44685,17835,13,5259,17657,44866,17114,31354,44861,24441,18237,24412,44873,13425,44687,45421,17904,45051,18430,30963,45286,45517,18894,44640)
Unknown column 'np.person' in 'where clause'