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 (13922,16885,5410,44858,19078,44863,17092,13425,14402,18648,44849,6609,28530,44873,44739,28313,45043,45421,18042,44767,17657,14622,44531,44861,24412,44764,44848,17335,18900,3883,13,9341,44878,17755,34194,18430,18894,44868,17556,36472,18279,6782,17771,17601,16935,45262,44869,18301,17904,24411,5388,24438,18446,13988,5993,32454,44867,17839,37267,44855,6875,44762,44671,3,44745,8753,17237,44669,44853,22509)
Unknown column 'np.person' in 'where clause'