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 (37267,44531,17601,18279,17492,4765,17848,6862,45515,45051,45262,3,44858,28530,44855,44767,13,45043,18430,45042,5410,17556,5259,8753,22509,44689,44766,17703,18353,19057,44765,17092,18301,44863,45177,44764,45567,44739,6782,45229,44854,17835,10402,18172,44835,44848,17527,44878,44745,18652,44775,44762,14622,18286,18794,19078,5993,16935,24438,44853,24441,6875,44868,17756,44845,44861,30135,44866,18427,45516)
Unknown column 'np.person' in 'where clause'