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 (44674,45180,44739,17009,45043,18172,18446,44685,14622,44855,44766,30986,44868,18286,44873,44775,18688,3883,5388,44848,18650,18900,18427,18652,44875,18279,44689,18648,17756,18794,36472,19057,5259,18430,16885,13922,44863,24411,17771,17114,45051,13425,6862,44894,17527,45567,6875,17848,44687,17835,22509,45042,18237,17755,24412,24438,45515,17657,44671,17904,44765,44870,30963,45421,3,45277,45177,37267,45229,45518)
Unknown column 'np.person' in 'where clause'