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 (32454,18650,17657,45561,44878,13,44687,28530,44851,44745,17278,34194,24441,13988,45421,17009,17771,44689,18279,5388,18286,17981,44868,28313,45180,45229,17904,44858,44739,44764,24438,44861,24412,18652,45262,17601,45567,44669,4765,44766,30963,17335,17527,44863,18172,44836,10402,17756,16885,45518,44845,44855,13425,16935,44767,18430,44765,18688,44768,18648,44671,17492,18185,17114,6862,9341,44685,45043,17755,45286)
Unknown column 'np.person' in 'where clause'