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 (18572,44845,45567,18430,24412,37057,18353,44858,44861,44867,36472,45277,18237,24441,44711,24411,17848,44866,3,44739,10402,45043,17756,5410,18279,44870,5993,17835,18794,17601,44640,17278,44685,44849,30963,44875,44768,44669,44863,44869,45072,44689,17335,44865,18301,28530,13425,17657,45229,45180,13922,18172,18446,44878,44884,18996,44837,17703,17839,37267,44762,44894,5259,45346,4686,44835,18427,4765,44671,45517)
Unknown column 'np.person' in 'where clause'