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 (18794,18719,17492,44863,44775,24412,17351,45042,45286,17771,28530,6862,19057,3883,44837,17527,44767,13425,44849,6875,37057,18427,44869,5993,44739,17601,16885,44640,44765,44867,17835,17904,44858,18688,17703,44870,44865,44835,18237,18301,45518,22509,24438,44873,45561,44853,18900,18042,17278,18894,45262,24441,17756,43800,18572,4686,18996,17009,18430,17114,17556,32454,17335,44687,44768,18279,44689,18353,18652,18185)
Unknown column 'np.person' in 'where clause'