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 (10402,17092,45286,44836,44837,24411,44869,13922,39676,44858,44848,45567,44878,18237,45515,45561,44640,18652,16885,44849,18172,17335,45180,45262,5410,24438,17114,34194,18688,19057,18353,3883,44766,43800,13988,6862,18894,16935,4686,44775,18430,44685,6875,44845,44531,44689,44764,44894,44868,18996,17839,5259,17848,28530,45043,45518,45346,45277,8753,17835,30135,24412,45229,18042,18650,17556,45042,44687,18981,17601)
Unknown column 'np.person' in 'where clause'