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 (17756,34194,44711,18237,18572,44687,44745,44849,44851,17755,18172,19078,30963,36472,44868,31354,9341,17657,44845,24441,24412,28313,18900,18996,44853,13922,44863,4686,44856,37267,17351,18688,18185,17771,30986,44671,17904,17335,44762,44866,24411,45286,44837,45180,44870,44875,6875,45515,18650,14622,13,45277,17092,44894,17556,44640,3883,5388,45421,43800,17527,24438,16935,3,44768,19057,44858,45229,30135,18279)
Unknown column 'np.person' in 'where clause'