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 (17755,6862,44849,44766,44768,45516,16935,6875,44745,19057,18042,4765,18572,18237,17904,24438,31354,45421,18446,17657,18981,28530,45346,44531,37057,32454,45180,44854,17009,5993,18650,44894,44775,18279,3883,17278,17351,44845,44848,13988,44669,8753,44764,45286,22509,13,17771,17601,45277,18301,44868,5259,45517,44867,18427,44835,45262,28313,17492,18353,44837,44863,45229,44856,16885,44685,44671,37267,45515,44687)
Unknown column 'np.person' in 'where clause'