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 (4686,30135,45072,18572,45042,45346,44845,22509,6862,5410,17703,18894,44671,24441,18279,44745,5388,13,28313,17009,17527,30986,18172,44837,44687,6875,45567,19078,44865,44836,24438,17556,5259,32454,44856,18900,45516,13425,18652,45229,45051,8753,24411,36472,44765,44878,44640,13988,45421,45180,17835,44767,45277,45043,5993,17839,44848,18237,18430,18996,18042,44875,18446,17771,44768,17335,44739,44867,30963,44854)
Unknown column 'np.person' in 'where clause'