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 (19057,30986,44854,18648,44894,44531,6862,45072,44674,13,18688,18301,44711,44855,22509,45567,4765,10402,24411,44685,45421,18996,45177,44739,44861,13988,17237,18894,45286,5388,17771,44669,24438,44866,44875,44849,17756,45180,18652,13922,45051,44858,18430,5410,5993,37267,17351,6875,44837,18185,28530,24441,18042,44848,17556,17009,18237,9341,44884,36472,44868,44767,44856,44878,45518,44671,14402,3,45346,16885)
Unknown column 'np.person' in 'where clause'