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 (44873,22509,44685,18981,44867,44835,44669,44531,44762,37267,44853,17492,44854,13425,6862,44851,45043,24411,45567,44856,44845,45180,18430,17114,43800,45518,45517,13922,44855,19057,17009,17237,18185,5388,44745,44868,18286,24438,45346,45042,18652,44866,17848,17904,44869,44875,45516,30963,45229,30986,14622,44858,44671,44775,17835,45072,44765,45421,16885,18794,6609,10402,18648,44863,44767,18688,17756,44836,5993,24441)
Unknown column 'np.person' in 'where clause'