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 (5993,44868,44835,44836,45229,18446,17009,44884,6875,44766,44866,18279,31354,17351,18719,14622,44674,44861,44870,45421,18652,18794,18185,44869,22509,44845,44745,18430,18572,24411,44848,18648,28530,16935,19057,34194,5410,44855,17092,45180,44711,45042,17527,45346,44875,13425,45177,18172,44853,13,30135,9341,45567,16885,30963,44685,17756,30986,17601,44865,3883,44775,44765,45517,45277,13922,17657,18286,18427,14402)
Unknown column 'np.person' in 'where clause'