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 (44870,17278,24411,45277,17092,44739,18446,44711,44875,13922,45042,18650,17981,24441,17556,18279,16935,44884,17527,44867,18652,44866,6782,18981,44858,17601,6875,17835,8753,45229,45286,44685,44868,5993,17335,13988,17771,44764,45051,45515,4686,45517,3883,44853,6609,17351,9341,18427,18719,18353,44836,44851,44837,44855,44674,28313,14622,3,18172,13,30963,44854,44845,44848,44531,18042,37057,30986,45516,17703)
Unknown column 'np.person' in 'where clause'