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 (45561,9341,44894,28530,45043,30135,13922,18794,44868,17657,3883,44762,44866,18572,44711,18650,17771,44878,44855,18652,45262,17492,6609,18042,44851,44689,36472,10402,44745,17703,18237,44858,24412,3,44875,45517,44853,34194,5388,18894,44775,31354,13,44867,44849,44848,44856,37267,17009,32454,17092,5259,44739,43800,18430,18900,18286,37057,13988,18185,24411,44865,45567,6875,44835,24441,19078,45515,17848,44685)
Unknown column 'np.person' in 'where clause'