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 (17492,18981,5388,17771,17351,13425,17237,17848,17114,18794,45517,44836,45229,45051,13,17009,45262,45346,18172,22509,44853,18900,45421,18894,3883,45042,17278,18688,44869,30963,18427,44870,18648,17756,44671,17092,18353,3,18301,45567,44873,44849,6609,45515,17703,18446,45286,44865,45561,44531,44848,44674,24412,44762,28313,4765,5259,14622,44764,44739,17527,43800,44855,18652,44878,44766,19057,24411,44669,18430)
Unknown column 'np.person' in 'where clause'