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 (44687,44894,44640,44873,13425,17756,18427,4686,18648,24438,45277,18286,8753,45051,18981,44745,44863,17527,44870,24411,17009,44674,44836,44855,6782,5993,17771,45561,37057,17657,45262,18650,44884,36472,14622,44849,6862,18794,45229,18446,16885,44856,17556,44739,24412,9341,18301,44878,5388,17601,18688,45567,24441,17981,44875,44845,18042,34194,18719,45516,44868,45177,17114,18652,30963,17492,44671,17237,17839,44858)
Unknown column 'np.person' in 'where clause'