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 (17771,45517,44689,18981,44768,44868,6862,44858,24441,17114,44837,5410,18446,24412,3883,18279,44875,45051,18172,44766,16935,5388,13922,44531,24411,17492,37057,19078,5993,18648,44836,18688,44849,17237,45561,44745,44856,17755,30986,6875,17835,4765,14622,18042,44863,44894,17351,18353,44739,8753,17848,44873,14402,13,45518,22509,44669,6782,28313,18427,5259,18650,18900,18794,17092,17657,44854,3,44845,45516)
Unknown column 'np.person' in 'where clause'