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 (4686,44685,18353,44764,17601,14402,44858,19057,6862,17981,6875,6782,5388,18648,45051,6609,18572,16885,44835,17756,44845,18301,44878,45346,44855,44531,44894,32454,18427,44768,45277,45229,45177,44837,45072,17703,17556,44853,18185,22509,16935,17009,44836,30986,18894,28530,45516,44848,44873,31354,45567,18688,18446,44867,45042,24411,44762,18650,17335,43800,44775,30963,24441,44851,5259,17904,44689,8753,17092,18996)
Unknown column 'np.person' in 'where clause'