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,44775,16885,3,44837,18172,5388,18900,45515,28313,45517,44685,45177,24438,17492,17771,44875,18353,44669,17839,45561,18286,18301,44870,10402,6875,18996,44674,17527,30963,44765,45421,17904,44884,18981,45286,4686,44854,44768,17092,44894,14402,44858,44766,16935,44873,24412,44856,13988,9341,17835,18446,44865,18430,44687,44861,34194,17335,18894,18650,44845,19078,6862,44689,45516,17601,45346,44869,44878,44849)
Unknown column 'np.person' in 'where clause'