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 (18427,45561,44875,18900,45051,17703,30963,24412,44849,45421,4765,6875,44765,30986,13922,28530,17848,17601,44870,44856,44762,18353,36472,44884,45042,17835,44855,19057,44869,44531,44689,18996,6609,18794,19078,18286,10402,18279,24441,17092,30135,3883,44878,37057,17839,18650,45346,45286,44766,45072,18301,3,44851,17492,17351,44767,45043,44835,16885,45277,44687,45517,44685,45516,9341,22509,44894,18652,4686,44867)
Unknown column 'np.person' in 'where clause'