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 (9341,18900,44687,17601,18237,44849,4686,18652,19057,18279,44689,43800,6782,44685,28313,44764,45346,44845,24412,18286,16885,17492,44745,17237,44861,34194,30135,37267,18185,44531,8753,17839,44766,17981,45042,44865,44671,45262,18301,4765,17755,18794,28530,17835,44848,44873,44894,24438,16935,18572,18042,44765,18446,18172,18894,45229,17278,13922,17556,18427,44875,44867,3,17756,44739,14402,13988,45043,18688,44674)
Unknown column 'np.person' in 'where clause'