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 (44687,44894,44640,44873,13425,17756,18427,4686,18648,24438,45277,18286,8753,45051,18981,44745,44863,17527,44870,24411,17009,44674,44836,44855,6782,5993,17771,45561,37057,17657,45262,18650,44884,36472,14622,44849,6862,18794,45229,18446,16885,44856,17556,44739,24412,9341,18301,44878,5388,17601,18688,45567,24441,17981,44875,44845,18042,34194,18719,45516,44868,45177,17114,18652,30963,17492,44671,17237,17839,44858)
Unknown column 'np.person' in 'where clause'