Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (13,17904,18981,22509,45517,16885,39676,19078,37057,45072,17839,45567,24441,18353,17601,45346,28313,44669,24411,44849,37267,17492,6875,18279,28530,19057,44875,13922,14402,13425,44865,17009,17703,45229,18996,44867,44766,44835,17335,45177,44866,17848,44854,44894,44762,18894,18301,44853,4686,3883,44855,43800,32454,44687,18237,44848,30986,44873,18688,18650,44689,44861,44868,4765,44765,18427,45515,17556,24412,16935)
Unknown column 'np.person' in 'where clause'