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 (45051,24411,16885,44855,18900,5388,45567,9341,24412,10402,18981,18650,45286,44835,13425,17278,44745,17657,17755,6875,37057,30986,17335,14402,17009,17835,44739,45346,28313,45515,43800,44775,45277,17703,32454,44866,17848,17981,44894,18430,18652,17601,18185,22509,17492,18353,28530,45516,45561,44861,45518,44531,8753,18279,18427,34194,17771,44849,44689,5993,45229,44875,16935,17237,18794,44845,17114,44766,4765,5410)
Unknown column 'np.person' in 'where clause'