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 (44767,45180,18652,24412,45421,17703,44875,44531,8753,17904,37057,45043,45286,18719,44685,17756,19078,17657,13425,44762,45517,36472,44869,17527,3,44835,37267,45051,18430,18172,13,44764,17839,16935,44870,44845,17237,24438,18237,45515,17278,44851,17335,45177,45561,5388,34194,9341,44739,44873,18286,44837,44866,43800,5259,44878,18900,44766,44861,18279,24441,3883,22509,45516,4765,18353,17092,32454,30963,14402)
Unknown column 'np.person' in 'where clause'