I think you might have an syntax problem in your TSQL. If your doing
$table_name = $wpdb->prefix . 'quotes';
then you can have
$sql = $wpdb->prepare( "
SELECT *
FROM ".$table_name."
ORDER BY RAND()
LIMIT 1
");
I think you might have an syntax problem in your TSQL. If your doing
$table_name = $wpdb->prefix . 'quotes';
then you can have
$sql = $wpdb->prepare( "
SELECT *
FROM ".$table_name."
ORDER BY RAND()
LIMIT 1
");