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 (45051,24441,44863,18981,3,45262,44875,44869,17756,14622,6875,17114,19057,5259,17237,44739,45515,44768,45517,30135,17904,18427,5993,44870,30986,44837,36472,17527,44855,44689,45286,3883,28530,44868,16885,44884,17835,17556,45072,14402,6782,18353,28313,17771,45277,45229,44640,44745,44531,44845,44762,17009,17755,43800,17981,44853,45561,44674,17848,44685,44894,44861,44878,44854,17839,30963,18996,18652,37267,44711)
Unknown column 'np.person' in 'where clause'