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 (44837,44687,18719,44870,18301,44848,17527,17278,44531,17981,17092,45072,30963,18185,24411,44865,13425,18688,44851,19057,44873,45567,17703,44767,44854,45277,18353,17848,24412,44765,37057,44711,44689,45043,13988,45561,13,44671,28530,14622,44875,44845,18572,5388,6862,45262,43800,3,36472,44868,44849,44766,44739,32454,6875,45180,44835,18427,17009,30135,45051,18652,17601,45229,44669,17771,17351,44869,18446,17335)
Unknown column 'np.person' in 'where clause'