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 (45229,18172,44687,44851,8753,44739,17904,6782,18894,18572,45072,45262,39676,14402,37057,45561,44669,44878,37267,5259,17114,9341,18279,44835,4765,44853,17657,18042,13922,17756,22509,18446,18430,36472,17601,18996,44875,18427,28530,44766,16885,44745,44855,44531,44674,17335,45043,5410,44873,18301,45567,18981,43800,18237,45346,44863,45180,5388,17351,6875,44837,3,44845,32454,17237,44775,13988,18719,44848,45051)
Unknown column 'np.person' in 'where clause'