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 (18650,45042,44669,17009,31354,18237,3,44868,44870,24438,18446,30986,13922,44745,6782,44762,44873,17657,17756,45229,44869,17092,45516,17492,5410,5259,44875,44739,17601,39676,44835,36472,43800,44689,13425,18301,18652,44855,44845,19057,44836,17237,18719,18427,13,18430,18900,28313,45421,45277,44711,45180,44685,18996,6875,37267,17335,45515,24412,44858,18042,17835,45517,44853,18572,18172,45346,37057,18286,45043)
Unknown column 'np.person' in 'where clause'