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 (44669,18446,45042,17755,17278,44865,44884,6609,18353,18648,24438,44849,6782,32454,22509,3883,17092,44674,18286,4765,37057,18301,44878,44848,24441,5388,18650,45072,17351,18688,6862,5410,44867,14622,44531,6875,18430,18237,31354,34194,14402,17657,18652,44768,44764,45277,13,17703,3,30986,44689,44845,17839,44765,13425,17556,13922,44762,18172,5259,45567,13988,17527,17237,45346,28313,36472,45262,45043,44868)
Unknown column 'np.person' in 'where clause'