0806
This commit is contained in:
@@ -60,10 +60,10 @@ $stmt = $pdo->prepare(
|
||||
pwe.job_level, pwe.start_date, pwe.end_date, pwe.is_current,
|
||||
(SELECT sa.account_id FROM social_accounts sa
|
||||
WHERE sa.owner_type = 'person' AND sa.owner_id = p.id AND sa.platform = 'phone' AND sa.is_active = 1
|
||||
ORDER BY sa.is_primary DESC LIMIT 1) AS phone,
|
||||
ORDER BY sa.is_defult DESC, sa.is_primary DESC LIMIT 1) AS phone,
|
||||
(SELECT sa.account_id FROM social_accounts sa
|
||||
WHERE sa.owner_type = 'person' AND sa.owner_id = p.id AND sa.platform = 'email' AND sa.is_active = 1
|
||||
ORDER BY sa.is_primary DESC LIMIT 1) AS email
|
||||
ORDER BY sa.is_defult DESC, sa.is_primary DESC LIMIT 1) AS email
|
||||
FROM person_work_experiences pwe
|
||||
INNER JOIN persons p ON p.id = pwe.person_id
|
||||
WHERE $whereSql
|
||||
|
||||
Reference in New Issue
Block a user