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 (22509,24441,18719,39676,28530,17904,37057,3883,17335,44866,44766,6609,44869,17351,44640,44858,44685,6875,17839,45072,18650,13,17835,14622,19078,44861,44868,6782,44849,14402,44854,18172,44836,17009,44870,18353,44674,45346,4765,13988,37267,44867,17756,17755,45042,18185,16935,18286,44865,18446,6862,45517,43800,18042,44873,45229,17981,44837,30963,17556,17492,17703,17237,44845,24411,44739,44835,24412,13425,44669)
Unknown column 'np.person' in 'where clause'