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 (6875,45177,19057,13988,44851,17492,44875,17756,39676,44766,44848,44856,5410,13,44868,45517,18894,44674,44640,44739,30963,45229,24441,45180,45516,44863,44671,18172,44849,45262,45346,4686,17527,18430,18353,31354,9341,17657,18446,17839,18719,44835,18981,45421,44865,30135,44858,18688,3883,8753,14622,17848,5993,18572,16935,28530,17237,5259,18652,18301,10402,18286,32454,44689,6862,44854,17009,45561,44878,34194)
Unknown column 'np.person' in 'where clause'