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 (24441,32454,44669,18981,44873,3,44851,44674,17981,14402,44837,44671,18042,13922,37057,18286,44866,17009,17351,44762,44867,19078,44853,6862,14622,13988,18650,17492,17904,44768,6875,45072,44865,5993,17527,28530,17703,44861,5388,44739,17848,45042,9341,28313,5410,22509,18894,31354,44849,8753,45567,44868,18446,16935,44875,44858,18185,44884,39676,17335,44640,18652,13,44869,45262,16885,45516,44531,17755,18172)
Unknown column 'np.person' in 'where clause'