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 (17835,44764,6875,18353,17278,37057,44884,45518,5259,44766,18446,44878,17492,5388,24412,44671,45177,17848,18652,44870,18688,44855,13425,4686,45262,17092,44849,44762,18279,44669,30135,45517,45561,44674,30986,18172,28313,44640,18237,44836,34194,9341,44687,44894,18894,44861,18185,3,45229,45286,17601,17981,44745,17527,24441,44858,45180,22509,16885,44765,17904,18648,44767,17771,45072,45567,44689,18719,43800,14402)
Unknown column 'np.person' in 'where clause'