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 (13922,18719,16935,45262,17756,44858,44765,10402,44762,24441,17351,18648,18427,44845,28313,34194,44869,17009,5388,44884,45518,44745,45042,19057,13425,3,18237,44865,44768,18894,5259,45516,17835,44835,5410,44868,44766,28530,45286,18688,18172,6782,44849,39676,44854,18652,45517,45277,36472,17771,44861,17278,18301,45051,4765,45567,5993,30986,44894,44687,17657,18996,44671,6875,44685,44837,44531,37057,18279,44851)
Unknown column 'np.person' in 'where clause'