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 (28530,44640,45051,13,44894,45180,44768,44835,44845,30135,17657,18446,44848,17835,44739,39676,19078,44745,44884,18900,13425,19057,45042,44671,18185,16885,45515,45072,3883,44873,17981,44856,18652,45346,18894,45277,18430,44685,6862,18353,18301,17237,45421,44854,4686,14402,30986,13922,45229,44689,14622,44851,44875,18237,18572,18981,18688,22509,17756,18042,18286,17092,45262,10402,45516,44764,6782,44837,45517,18427)
Unknown column 'np.person' in 'where clause'