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 (30135,32454,13,44739,44685,43800,44674,19057,17755,45567,44870,13988,4765,3,45051,18648,3883,6609,24411,44875,37057,45262,44836,37267,17237,18430,36472,24412,45277,44767,45515,44861,44837,17703,45517,31354,44711,17556,45518,17009,6782,17527,18237,18279,44849,17848,44762,39676,18996,8753,18688,17114,44531,19078,44873,44845,44867,5388,18794,45177,24438,44848,44640,18042,17981,18301,5410,17657,18427,17839)
Unknown column 'np.person' in 'where clause'