mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
6 lines
No EOL
395 B
Text
Executable file
6 lines
No EOL
395 B
Text
Executable file
(SELECT DISTINCT(follower) AS __id FROM
|
|
(SELECT follower FROM subscriptions WHERE target=? AND flags=0 AND model="openvk\\Web\\Models\\Entities\\User") u0
|
|
LEFT JOIN
|
|
(SELECT target FROM subscriptions WHERE follower=? AND flags=0 AND model="openvk\\Web\\Models\\Entities\\User") u1
|
|
ON u0.follower = u1.target WHERE u1.target IS NULL) u2
|
|
INNER JOIN profiles ON profiles.id = u2.__id |