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 (44739,44851,32454,22509,44745,24441,18996,18650,44884,30986,45043,44873,45072,17278,19057,45516,17657,44875,44861,45518,17492,10402,43800,37267,44685,17756,17092,13425,44854,44845,44856,44858,44836,44853,9341,44765,44671,44866,44531,44855,3,44640,17237,24438,44674,44767,18981,45042,44768,18430,45177,44711,17981,18172,31354,16885,24411,17835,45229,44869,44835,45421,45051,44687,16935,13,39676,17009,28530,6862)
Unknown column 'np.person' in 'where clause'