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 (44837,44875,44853,45421,17092,44848,39676,44863,44767,16935,44856,44765,44884,13,17771,45262,43800,44775,44894,44711,45518,5993,36472,44768,44854,30986,44835,13988,44849,44531,44869,18996,18185,44674,45286,45517,9341,18446,45042,45516,19057,17657,16885,14402,18430,44685,18794,44764,17527,44766,3883,5259,18172,44870,13922,45180,37267,13425,45072,18719,28313,17009,17601,37057,17278,44739,44640,44861,45229,18648)
Unknown column 'np.person' in 'where clause'