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 (9341,17237,5388,44739,44745,5993,16885,44866,44640,44856,28530,44845,13425,17835,44848,18996,44873,45346,45518,18301,18648,17981,44767,18981,45286,17657,6875,4765,18185,24412,17278,44775,17335,18286,36472,44854,18042,17848,24441,18900,6609,3,18446,17839,18688,44689,45072,45051,43800,17756,44884,44765,44531,44685,37267,34194,17771,44867,44671,18237,44764,6782,17904,18894,45229,44687,45515,17009,24438,17492)
Unknown column 'np.person' in 'where clause'