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 (18042,17601,44671,18286,17755,24412,45517,44689,18794,44854,18894,3883,45262,36472,45229,18446,45346,17278,18900,8753,17009,14402,17237,37267,17335,18172,45421,5388,39676,44837,44866,18353,18301,44853,44873,44849,44861,13922,13988,18650,45286,18427,45567,45518,45042,4765,45072,44685,28313,44687,44869,28530,44845,19078,6862,16935,45515,6875,44875,17756,44894,44870,18185,18981,16885,9341,17657,19057,17771,44640)
Unknown column 'np.person' in 'where clause'