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 (19078,18427,44870,44764,45517,18430,39676,18648,44739,44835,44855,44674,17601,44762,44854,36472,18301,44687,44865,3883,44768,31354,13922,17756,32454,6609,44745,45177,18572,18719,5388,45072,14402,45286,18237,6782,45561,16935,17771,10402,45262,17351,18650,18286,17237,44851,44884,24411,44867,17657,3,17009,17527,45042,6862,5993,44836,44868,18185,18794,30986,45043,34194,22509,44848,45516,44873,6875,37267,18446)
Unknown column 'np.person' in 'where clause'