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 (4765,30986,18894,44849,44854,30135,45518,18650,5259,44762,44739,3,45277,17237,44851,37057,18279,44689,44894,24441,6609,18719,18648,44640,18301,18652,44764,18430,17492,6782,17703,18042,32454,19078,17092,44853,44767,44685,44873,17527,44855,44863,44687,44884,44848,45567,16935,18286,44671,17278,17904,44868,44861,24412,44865,17556,5410,13988,17848,13425,17981,17839,17756,44870,45346,28530,45561,19057,13,45229)
Unknown column 'np.person' in 'where clause'