News
SELECT id , ordine as ordinex , titolo_it as titolo , titolo_immagine_it as titolo_immagine , data_it as data, immagine , dettaglio_testo_it as testo , immagine , (select permalink_it from news where ordine = (select min(ordine) from news where ordine > ordinex) AND attivo = 'on' AND titolo_it != '') as prevpermalink , (select permalink_it from news where ordine = (select max(ordine) from news where ordine < ordinex) AND attivo = 'on' AND titolo_it != '') as nextpermalink FROM news WHERE permalink_it = 'bmx-corsi-stagione-2018' LIMIT 1
Deadlock found when trying to get lock; try restarting transaction