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 (18894,44865,18427,44835,17492,45180,18650,44739,17527,44884,45516,45421,44870,18900,44689,17904,44869,44855,34194,4686,18688,44848,9341,45286,45561,18237,17351,16885,44873,45517,44853,44856,17114,44640,45051,13988,13425,14622,18981,31354,45042,18572,44845,19057,5993,44836,44669,8753,17601,45515,17335,3,28313,39676,44863,18430,44762,44851,44531,43800,17848,44868,13,18794,44775,14402,17835,16935,18042,44849)
Unknown column 'np.person' in 'where clause'