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 (44674,44855,45177,44858,37057,44853,17657,17601,17237,45043,16885,44766,39676,36472,32454,17771,44671,44894,5410,10402,13,13425,6875,44873,44739,44845,31354,45051,44765,18446,4686,18794,45072,18650,45561,18237,44870,30986,17755,44837,17527,24438,28530,45517,17492,44848,17278,45516,44711,44689,44867,44865,3,14622,45346,17335,44687,44854,45229,34194,18719,44762,17009,17351,18688,45042,18185,44531,30963,18301)
Unknown column 'np.person' in 'where clause'