$count = "SELECT COUNT(*) FROM `table` WHERE `user_id` = '$user_id' AND `video_id` = '$video_id'";
if (!$count) {
// добавляем видео в закладки
}
$a = 5;
echo $a; # 5
echo "$a"; # 5
echo '$a'; # $a
$userLists = $wpdb->get_results("SELECT `user_name`, `user_bet`, `user_time` FROM `wp_konkurs` WHERE `user_time` BETWEEN '$nowDate 00:00:00' AND '$nowDate 23:59:59' ORDER BY `user_time` DESC");
SELECT *.`table`, `users`.`name` AS 'username'
FROM `table`
INNER JOIN `users` ON `users`.`id` = `table`.`studentid`