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 (45277,45072,45286,18981,4765,44861,44851,44711,44671,44669,44848,44867,17981,18172,14402,36472,44878,45262,45421,30963,44836,44687,44835,44739,17848,17492,18648,18279,18237,4686,17703,17237,18446,45043,32454,19057,5388,45515,17527,13988,44775,16935,44762,24411,17601,22509,37267,44531,45567,45517,45180,8753,5259,18650,18719,28530,44845,14622,44765,18286,17835,17335,44764,18042,37057,24441,13,18427,6782,19078)
Unknown column 'np.person' in 'where clause'