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 (44775,44855,36472,6875,17237,18648,44848,8753,44836,18996,44865,45262,17839,17771,44863,44685,44640,18237,17981,45072,18650,45180,44767,9341,44851,44762,24411,44869,17278,44884,17527,30963,16935,44858,44531,13,44768,44711,44866,44766,44849,44873,44689,44835,17755,45515,44870,5388,13988,18688,5410,6609,18719,18794,28313,13922,45051,17492,17703,18572,18981,30986,18286,44765,45567,17904,44853,17835,13425,6782)
Unknown column 'np.person' in 'where clause'