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,17335,45518,44685,5388,18650,17092,18981,45286,22509,18427,17009,17835,44689,18688,45421,17771,19078,36472,24441,45042,13425,44866,44851,28530,17703,16885,18996,14622,18286,44875,44739,17755,44855,31354,44858,17492,44863,28313,44711,18172,45516,18446,44867,44767,13922,18237,45277,30986,3,6875,45567,24412,44878,18430,44884,45561,44671,17556,44745,44865,17904,44762,4765,44835,44764,4686,17351,44531,5993)
Unknown column 'np.person' in 'where clause'