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 (45072,18042,44775,18301,9341,17981,44835,45262,6875,4765,44855,44851,45042,18648,44878,44858,6862,24441,44766,17351,13,44685,3883,45518,17009,31354,18427,17755,44854,37057,44768,44687,16935,18981,18237,17756,18794,45043,17703,18894,24438,13922,18185,44671,44745,44884,24412,45177,45515,30135,18279,14622,17835,30963,14402,44674,18446,18900,44856,16885,17278,13425,44870,45517,44764,45180,17492,19057,44866,17601)
Unknown column 'np.person' in 'where clause'