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 (19057,17839,18042,18996,17771,45517,45229,6782,17009,30963,34194,17657,18301,44865,17755,37057,24441,24438,17601,44853,9341,45177,44894,3883,14622,18900,18446,44745,24412,18650,44884,18981,44767,17527,13988,4686,44685,3,18688,17904,45042,44837,18279,17492,5993,44531,5259,6862,13,44674,44711,43800,18427,17835,22509,44671,44765,18572,5388,17556,18185,6609,39676,45277,44640,4765,18172,30135,44861,44858)
Unknown column 'np.person' in 'where clause'