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 (5259,44766,10402,44762,44863,18172,17657,17009,6862,44873,17278,44836,24412,17092,18648,18996,44875,17771,6875,18572,39676,18185,6782,18301,44858,9341,5388,37057,45421,24411,24438,44848,45286,16885,17848,18652,44739,44861,45346,18650,45518,44845,37267,44685,17756,17527,17492,44855,44856,44894,44853,45180,24441,45517,18353,44674,17703,13988,44868,5410,13922,44671,45516,44745,34194,44768,17237,45042,18981,17755)
Unknown column 'np.person' in 'where clause'