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 (18996,18279,44764,45516,17848,17527,17755,44531,44836,22509,45229,17904,18981,45421,45515,18430,44768,18353,44687,43800,44671,18648,16885,44873,24438,44853,18894,18652,45518,44884,6609,32454,44685,24441,3,44856,18719,30986,17601,44870,37057,13425,5993,44878,44863,45517,17335,14622,17756,18042,16935,18688,19078,44845,24411,44835,44849,4686,18900,44851,45561,44775,37267,45051,44865,44767,44689,44669,44739,44855)
Unknown column 'np.person' in 'where clause'