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 (45516,19057,13425,45042,44775,14402,17351,44884,44764,44849,24438,6782,44851,13988,44669,45346,18688,45072,18237,18981,44674,17756,28530,44837,17835,44853,18427,44848,17335,45567,17492,17839,44531,45177,24412,36472,17009,16935,5388,44835,44671,44687,45051,5993,13,13922,45421,18652,19078,43800,44858,45517,30135,17771,44878,44861,3883,39676,44765,44867,44875,4765,44894,18894,10402,44767,3,44854,45262,45518)
Unknown column 'np.person' in 'where clause'