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,44866,19057,17527,17904,45042,32454,44863,18652,28313,37057,44687,18172,45229,44836,44894,45180,44884,44745,44868,16935,14402,45561,18688,39676,13425,44640,17492,45518,17601,44764,9341,17278,19078,37267,44669,13922,18996,44865,17848,45421,44875,30135,18648,44835,44853,44689,17556,17755,36472,44861,44685,18650,34194,17657,18719,45515,18794,18572,17351,17703,44671,44849,14622,18446,6875,17839,18237,18185,44711)
Unknown column 'np.person' in 'where clause'