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 (45177,45567,44867,24412,4686,17771,45042,45516,17601,14622,45286,18301,44875,19078,17527,44689,30963,6782,44745,44849,44711,44870,44858,44762,18652,44856,44866,16885,18650,17981,18446,17848,5410,44853,31354,18286,9341,17492,44674,17835,37057,5259,45421,44671,8753,44687,18042,45561,18353,17756,45043,44835,45515,18996,17657,44878,17092,19057,44739,44836,44873,17839,28530,45262,44854,13425,44863,13922,44768,24441)
Unknown column 'np.person' in 'where clause'