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 (24412,44765,6862,44674,44863,4765,18981,45229,45286,32454,5410,5388,16935,44669,44835,13,34194,17657,44870,18572,44775,44856,44739,44851,44848,44531,6782,45515,44873,44762,44858,44767,45517,44837,45516,13922,17009,17771,44868,17237,45072,30963,18446,30986,44845,17092,18900,18648,44687,28530,44689,28313,6609,13425,44836,43800,18353,44869,44640,18185,17848,45043,18996,17278,17335,45346,17556,17756,44894,36472)
Unknown column 'np.person' in 'where clause'