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 (45421,45177,13,44854,44855,32454,44884,43800,44858,45567,45517,17278,24411,17756,6875,17839,17335,44875,45043,19057,44861,44837,45262,13988,17092,44851,37057,24438,44869,44689,17492,17657,18353,18279,44765,6609,44671,44836,45515,39676,17755,18185,44669,17771,18794,30963,44866,45286,37267,44867,44845,44531,18894,45072,17848,18237,14402,44870,24412,17703,9341,3883,10402,18688,4765,6862,45518,28530,44766,44685)
Unknown column 'np.person' in 'where clause'