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 (31354,18894,45262,44745,18279,44854,44711,19057,44873,45515,30986,17771,5410,44884,45051,44674,6609,45286,44853,8753,18572,45229,44765,6862,24441,18794,17839,17527,37267,44845,44671,44835,17755,16935,13922,18446,44875,44866,44837,44836,17556,18430,44689,24412,30135,17756,3,44640,9341,18981,3883,18237,28530,18301,17237,10402,44861,18648,45177,44531,45567,4686,17351,44764,44766,5259,17092,30963,45072,34194)
Unknown column 'np.person' in 'where clause'